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

◆ BT_MESH_SENSOR_TOLERANCE_ENCODE

#define BT_MESH_SENSOR_TOLERANCE_ENCODE ( _percent)

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

Value:
((_percent) * 4095) / 100

Encode a sensor tolerance percentage.

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