BleCentralHal
Low-level BLE Central Hardware Abstraction Layer (HAL) used to back BLE mdoc transports.
All ISO/IEC 18013-5 protocol state machines, continuation management, retry/backoff loops, BLEIdent HKDF verification, GATT message chunking/reassembly, and L2CAP 4-byte length-prefixed framing are handled by Multipaz's shared BLE central manager. Implementations of this interface perform low-level Bluetooth central operations and forward asynchronous events to Callback.
Types
Asynchronous callbacks invoked by a BleCentralHal implementation.
Properties
Functions
Cleans up any partially established L2CAP channel attempt before retrying.
Initiates an L2CAP Connection-Oriented Channel to psm on the peripheral.
Initiates a BLE connection to the discovered peripheral.
Discovers GATT services on the connected peripheral, checking for serviceUuid.
Enables GATT notifications on characteristicUuid by writing its CCCD.
Notifies the HAL that scanning has been stopped after discovering the target peripheral.
Reads the GATT characteristic with uuid.
Requests a GATT ATT MTU of mtu bytes.
Registers the Callback receiver for asynchronous BLE central events.
Starts scanning for peripherals advertising serviceUuid.
Checks or waits for the BLE central radio/stack to power on, reporting via Callback.onPowerOn.
Writes value to the GATT characteristic with uuid (using Write Without Response or Write With Response according to the characteristic's properties) and invokes Callback.onCharacteristicWrite when completed.