BLEManager
Properties
Flow emitting every raw BLE characteristic notification received from the connected device as a defensive snapshot of the original byte array. This is an RX-only view of trafficFlow, sharing its payloads and bounded buffer. Treat bytes as read-only. Notification chunks are not necessarily complete protocol frames. The public type is now Flow rather than SharedFlow; ordinary collect usage is unchanged.
No replay; bounded, best-effort notifications, including repeated authentication status.
Null without a selected security-capable protocol; state survives collector changes.
RX notifications and TX writes accepted by Android, captured before decoding / ack waiting. No replay or history is retained without collectors. Subscribe before connecting to capture initialization. The shared buffer is bounded and drops oldest events for slow collectors; sequence gaps reveal missed events. Capture never suspends for collectors or performs I/O. Consumers must treat event bytes as read-only and perform storage on a background context.
Functions
Connect to a specific device
Disconnect from current device
Returns the latest BMS snapshot decoded by the active protocol, or null when the connected wheel does not expose BMS data.
Send a command to the connected device
Get currently connected device
Get current connection state
Latest diagnostic-log download snapshot from the active protocol (InMotion P6/V9).
Returns all registered protocols so the caller can inspect and choose one if needed.
Initialize the BLE Manager
Check if Bluetooth is enabled
Register a protocol for device detection and data processing
Callback registration methods.
Start scanning for EUC devices
Stop scanning for devices