Optionaloptions: BoksClientOptionsConnects to the Boks device and sets up notification listeners.
Disconnects from the Boks device.
Executes a transaction with the Boks device. Enforces that only one transaction runs at a time.
The request packet to send.
Configuration for the transaction (success opcodes, timeout, etc).
A promise resolving to the completed transaction.
Fetches the full history from the Boks device using the transaction model.
Timeout between two history packets.
Array of history events.
Reads the current battery level (standard Bluetooth characteristic).
Battery level (0-100) or undefined if unreliable.
Reads detailed battery statistics (custom Boks characteristic).
Battery stats object or undefined if unreliable.
Subscribes to all incoming packets.
Function called for every parsed packet received.
A function to unsubscribe.
Reads data from a specific BLE characteristic.
The UUID of the characteristic to read.
The raw data as a Uint8Array.
High-level client for interacting with a Boks device. Focuses on protocol orchestration and transport abstraction.