nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ bt_mesh_sensor_type_get()

const struct bt_mesh_sensor_type * bt_mesh_sensor_type_get ( uint16_t id)

#include <include/bluetooth/mesh/sensor.h>

Get the sensor type associated with the given Device Property ID.

Only known sensor types from Sensor types will be available. Sensor types can be made known to the sensor module by enabling

CONFIG_BT_MESH_SENSOR_ALL_TYPES 

or by referencing them in the application.

Parameters
[in]idA Device Property ID.
Returns
The associated sensor type, or NULL if the ID is unknown.