BleConnection
Encapsulates a BLE connection to a BleDevice.
Inheritors
Properties
Link copied to clipboard
A flow of BleConnectionState changes. StateFlow semantics ensure the latest state is always observable and distinct-equals deduplication avoids spurious re-emissions.
Link copied to clipboard
A flow of the current device. StateFlow semantics: replays the latest value to new collectors and conflates rapid updates.
Functions
Link copied to clipboard
Link copied to clipboard
Disconnects from the current device.
Link copied to clipboard
Returns the maximum write value length for the given write type, or null if unknown.
Link copied to clipboard
Asks the platform to switch to a high-throughput / low-latency BLE connection priority for the duration of the connection. Used by latency-sensitive flows like firmware updates. Returns true if the request was issued. Default implementation returns false for platforms that don't support it.