Ble
Bluetooth Low Energy (BLE) connection methods according to ISO/IEC 18013-5 Second Edition clauses 11.1.1–11.1.3.
Subtype names follow the mdoc-perspective CDDL identifiers from BleOptions:
GattPeripheral (
0: GattPeripheral): mdoc is BLE Peripheral / GATT server; mdoc reader is BLE Central / GATT client.GattCentral (
1: GattCentral): mdoc is BLE Central / GATT client; mdoc reader is BLE Peripheral / GATT server.DirectL2capPeripheral (
2: DirectL2capPeripheral): mdoc is BLE Peripheral / L2CAP server; mdoc reader is BLE Central / L2CAP client.DirectL2capCentral (
3: DirectL2capCentral): mdoc is BLE Central / L2CAP client; mdoc reader is BLE Peripheral / L2CAP server.
Inheritors
Types
mdoc direct BLE L2CAP central mode (BleOptions key 3: DirectL2capCentral).
mdoc direct BLE L2CAP peripheral mode (BleOptions key 2: DirectL2capPeripheral).
mdoc GATT central client mode (BleOptions key 1: GattCentral).
mdoc GATT peripheral server mode (BleOptions key 0: GattPeripheral).
Properties
The L2CAP PSM if this is a DirectL2capPeripheral or DirectL2capCentral with a known PSM, or null.
Whether this mode uses direct BLE L2CAP for data transfer (DirectL2capPeripheral or DirectL2capCentral).
Whether this mode uses GATT for data transfer (GattPeripheral or GattCentral).
Whether the mdoc acts as BLE Central (and the mdoc reader acts as BLE Peripheral) in this mode.
Whether the mdoc acts as BLE Peripheral (and the mdoc reader acts as BLE Central) in this mode.
The 7-byte BLE peripheral device address of whichever peer acts as BLE Peripheral in this mode, if known.
Functions
Encodes this single connection method as DeviceRetrievalMethod CBOR.