MdocConnectionMethodBle
data class MdocConnectionMethodBle(val supportsPeripheralServerMode: Boolean, val supportsCentralClientMode: Boolean, val peripheralServerModeUuid: UUID?, val centralClientModeUuid: UUID?, val peripheralServerModePsm: Int? = null, val peripheralServerModeMacAddress: ByteString? = null) : MdocConnectionMethod
Connection method for BLE.
Parameters
supportsPeripheralServerMode
whether mdoc peripheral mode is supported.
supportsCentralClientMode
whether mdoc central client mode is supported.
peripheralServerModeUuid
the UUID to use for mdoc peripheral server mode.
centralClientModeUuid
the UUID to use for mdoc central client mode.
peripheralServerModePsm
the L2CAP PSM, if set. This is currently not standardized, use at your own risk.
peripheralServerModeMacAddress
the MAC address, if set.
Constructors
Properties
Functions
Link copied to clipboard
Generates DeviceRetrievalMethod
CBOR for the given MdocConnectionMethod.
Link copied to clipboard
open override fun toNdefRecord(auxiliaryReferences: List<String>, role: MdocRole, skipUuids: Boolean): Pair<NdefRecord, NdefRecord>
Creates a NDEF Connection Handover Carrier Reference record and Auxiliary Data Reference records.