PairingCode

data class PairingCode(val peripheralKey: ByteArray, val token: ByteArray, val deviceName: String)(source)

Pairing code tether1:<S_P>.<token>.<name>; the QR code holds its link form tether://pair?c=<S_P>.<token>.<name> (since 1.2: the iPhone's Camera app offers to open it in the app). parse accepts both.

Constructors

Link copied to clipboard
constructor(peripheralKey: ByteArray, token: ByteArray, deviceName: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun encode(): String
Link copied to clipboard
fun link(): String

The link form, for the QR code.