nRF Connect SDK API 2.8.99
|
#include <bluetooth/mesh/sensor.h>
Go to the source code of this file.
Data Structures | |
struct | bt_mesh_sensor_srv |
Macros | |
#define | BT_MESH_SENSOR_SRV_INIT(_sensors, _count) |
Initialization parameters for Sensor Server model. | |
#define | BT_MESH_MODEL_SENSOR_SRV(_srv, ...) |
Sensor Server model composition data entry. | |
#define | BT_MESH_SENSOR_PROP_METADATA_ID 0x0001 |
#define | BT_MESH_SENSOR_PROP_METADATA(...) |
Functions | |
int | bt_mesh_sensor_srv_pub (struct bt_mesh_sensor_srv *srv, struct bt_mesh_msg_ctx *ctx, struct bt_mesh_sensor *sensor, const struct bt_mesh_sensor_value *value) |
Publish a sensor value. | |
int | bt_mesh_sensor_srv_sample (struct bt_mesh_sensor_srv *srv, struct bt_mesh_sensor *sensor) |
Make the server to take a sample of the sensor, and publish if the value changed sufficiently. | |