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

◆ BT_MESH_SENSOR_TOLERANCE_ENCODE

#define BT_MESH_SENSOR_TOLERANCE_ENCODE (   _percent)    ((_percent) * 4095) / 100

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

Encode a sensor tolerance percentage.

Parameters
[in]_percentThe sensor tolerance to encode, in percent.