LabelSpec
Types
Link copied to clipboard
data class Connect(val content: NameTagContent, val link: String, val linkWithoutPin: String?, val band: String, val network: String, val pinWord: String) : LabelSpec
The connected radio as a connect label: the name tag's layout around link, the meshtastic/design#177 connect link. linkWithoutPin is set only when link carries the radio's fixed pairing PIN, which is in the QR alone and never printed as text. The bottom row says how scanning connects: network, the link's transport, with pinWord after it when the QR carries the PIN.
Functions
Link copied to clipboard
fun LabelSpec.layout(lengthDots: Int, measurer: LabelTextMeasurer, encoder: QrEncoder = LabelQrEncoder): LabelLayout?
Lays this out for a label lengthDots long, or returns null when its QR does not fit the head at 2 dots per module. A contact's long name is cut in the QR payload first; a channel or connect link has nothing to cut.