nRF Connect SDK API 0.1.0
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

embed:rst:inline :kconfig:option:`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.