listen To Connection State
Listens to the connection state of a specific Opticon BLE scanner.
Use this method to get updates about the connection state of the scanner specified by the deviceId. You will receive updates as a flow of BleDeviceConnectionState.
Return
A flow of BleDeviceConnectionState indicating the current connection state.
Parameters
device Id
The identifier of the target scanner.
abstract fun listenToConnectionState(deviceId: String, callback: Callback<BleDeviceConnectionState>)
Callback-based version of listenToConnectionState for Java interoperability.
Parameters
device Id
The identifier of the target scanner.
callback
Callback to receive BleDeviceConnectionState.