getSensorStateFromDevice

fun getSensorStateFromDevice(owner: LifecycleOwner, device: BleDevice?, stateCallback: SensorStateCallback)

Retrieves the sensor state from a Bluetooth device

Parameters

owner

The LifecycleOwner used to manage the sensor state retrieval lifecycle

device

The Bluetooth device from which to retrieve the sensor state

stateCallback

The callback for handling the retrieved sensor state