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

◆ BT_MESH_SENSOR_SRV_INIT

#define BT_MESH_SENSOR_SRV_INIT ( _sensors,
_count )

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

Value:
{ \
.sensor_array = _sensors, \
.sensor_count = \
MIN(CONFIG_BT_MESH_SENSOR_SRV_SENSORS_MAX, _count), \
}

Initialization parameters for Sensor Server model.

Note
A sensor server can only represent one sensor instance of each sensor type. Duplicate sensors will be ignored.
Parameters
[in]_sensorsArray of pointers to sensors owned by this server.
[in]_countNumber of sensors in the array. Can at most be
CONFIG_BT_MESH_SENSOR_SRV_SENSORS_MAX 
.