listenToConnectionState

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

deviceId

The identifier of the target scanner.


Callback-based version of listenToConnectionState for Java interoperability.

Parameters

deviceId

The identifier of the target scanner.

callback

Callback to receive BleDeviceConnectionState.