BlePeripheralHal
Low-level BLE Peripheral Hardware Abstraction Layer (HAL) used to back BLE mdoc transports.
All ISO/IEC 18013-5 protocol state machines, continuation management, BLEIdent HKDF calculation, L2CAP PSM 4-byte big-endian encoding, GATT message chunking/reassembly, and L2CAP 4-byte length-prefixed framing are handled by Multipaz's shared BLE peripheral manager. Implementations of this interface perform low-level Bluetooth peripheral operations and forward asynchronous events to Callback.
Types
Asynchronous callbacks invoked by a BlePeripheralHal implementation.
Functions
Closes any published L2CAP server listener so no new L2CAP client connections are accepted (already-accepted client channels remain open).
Publishes an insecure L2CAP server channel, reporting its PSM via Callback.onL2capPublished.
Sends a GATT read response for requestId.
Registers the Callback receiver for asynchronous BLE peripheral events.
Sets up the GATT server and registers the ISO/IEC 18013-5 service and characteristics.
Starts BLE advertising for serviceUuid.
Stops BLE advertising.
Checks or waits for the BLE peripheral radio/stack to power on, reporting via Callback.onPowerOn.