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

◆ bt_mesh_sensor_sampling

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

Sensor sampling type.

Represents the sampling function used to produce the presented sensor value.

Enumerator
BT_MESH_SENSOR_SAMPLING_UNSPECIFIED 

The sampling function is unspecified

BT_MESH_SENSOR_SAMPLING_INSTANTANEOUS 

The presented value is an instantaneous sample.

BT_MESH_SENSOR_SAMPLING_ARITHMETIC_MEAN 

The presented value is the arithmetic mean of multiple samples.

BT_MESH_SENSOR_SAMPLING_RMS 

The presented value is the root mean square of multiple samples.

BT_MESH_SENSOR_SAMPLING_MAXIMUM 

The presented value is the maximum of multiple samples.

BT_MESH_SENSOR_SAMPLING_MINIMUM 

The presented value is the minimum of multiple samples.

BT_MESH_SENSOR_SAMPLING_ACCUMULATED 

The presented value is the accumulated moving average value of the samples. The updating frequency of the moving average should be indicated in bt_mesh_descriptor::update_interval. The total measurement period should be indicated in bt_mesh_descriptor::period.

BT_MESH_SENSOR_SAMPLING_COUNT 

The presented value is a count of events in a specific measurement period. bt_mesh_descriptor::period should denote the measurement period, or left to 0 to indicate that the sample is a lifetime value.