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

◆ compare

int(*const bt_mesh_sensor_format_cb::compare) (const struct bt_mesh_sensor_value *op1, const struct bt_mesh_sensor_value *op2)

Compare two bt_mesh_sensor_value instances.

op1 and op1 must have the same format.

Parameters
[in]op1The first value to compare.
[in]op2The second value to compare.
Returns
0 if op1 == op2, 1 if op1 > op2, -1 otherwise (including if op1 and op2 are not comparable).