nRF Connect SDK API 2.8.99
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).