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

◆ BT_MESH_SENSOR_VALUE_IN_RANGE

#define BT_MESH_SENSOR_VALUE_IN_RANGE (   _value,
  _start,
  _end 
)

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

Value:
( \
(_value)->format->cb->compare((_value), (_start)) >= 0 && \
(_value)->format->cb->compare((_end), (_value)) >= 0)

Returns whether or not encoded sensor value _value is in the range [_start, _end], inclusive.

Parameters
[in]_valueThe value to check.
[in]_startStart point of the range to check, inclusive.
[in]_endEnd point of the range to check, inclusive.