GattCentral
data class GattCentral(val uuid: UUID? = null, val peripheralAddress: BlePeripheralAddress? = null) : MdocConnectionMethod.Ble
mdoc GATT central client mode (BleOptions key 1: GattCentral).
Properties
Link copied to clipboard
The L2CAP PSM if this is a DirectL2capPeripheral or DirectL2capCentral with a known PSM, or null.
Link copied to clipboard
Whether this mode uses direct BLE L2CAP for data transfer (DirectL2capPeripheral or DirectL2capCentral).
Link copied to clipboard
Whether this mode uses GATT for data transfer (GattPeripheral or GattCentral).
Link copied to clipboard
Whether the mdoc acts as BLE Central (and the mdoc reader acts as BLE Peripheral) in this mode.
Link copied to clipboard
Whether the mdoc acts as BLE Peripheral (and the mdoc reader acts as BLE Central) in this mode.
Link copied to clipboard
the mdoc reader's BLE peripheral device address, if known.
Functions
Link copied to clipboard
fun toDeviceEngagement(engagementType: MdocEngagementType = MdocEngagementType.DEVICE_QR): ByteArray
Encodes this single connection method as DeviceRetrievalMethod CBOR.