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

◆ delta_check

bool(*const bt_mesh_sensor_format_cb::delta_check) (const struct bt_mesh_sensor_value *current, const struct bt_mesh_sensor_value *previous, const struct bt_mesh_sensor_deltas *delta)

Perform a delta check between two bt_mesh_sensor_value instances.

current and previous must have the same format.

Parameters
[in]currentThe current value.
[in]previousThe previous sensor value to compare against.
[in]deltaThe delta to use when checking.
Returns
true if the difference between current and previous is bigger than the relevant delta specified in delta, false otherwise.