SensorClient

Sensor Client for reading sensor data from mesh devices.

The Sensor model provides a standardized way to read sensor measurements from a device. Sensor properties are identified by 16-bit property IDs assigned by the Bluetooth SIG.

Functions

Link copied to clipboard
suspend fun get(elementAddress: MeshAddress.UnicastAddress, propertyId: UShort): SensorStatus

Get a sensor value for a specific property.

Link copied to clipboard
suspend fun getDescriptor(elementAddress: MeshAddress.UnicastAddress, propertyId: UShort): SensorDescriptor

Get the sensor descriptor for a property.