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

◆ bt_mesh_sensor_value_compare()

int bt_mesh_sensor_value_compare ( const struct bt_mesh_sensor_value a,
const struct bt_mesh_sensor_value b 
)

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

Compare two bt_mesh_sensor_value instances.

Parameters
[in]aThe first value to compare.
[in]bThe second value to compare.
Returns
0 if a == b, 1 if a > b, -1 otherwise (including if a and b are not comparable).