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

◆ to_micro

enum bt_mesh_sensor_value_status(*const bt_mesh_sensor_format_cb::to_micro) (const struct bt_mesh_sensor_value *sensor_val, int64_t *val)

Convert a bt_mesh_sensor_value instance to an integer in micro units.

If this function returns a status for which bt_mesh_sensor_value_status_is_numeric returns false, val is not modified.

Parameters
[in]sensor_valThe bt_mesh_sensor_value to convert.
[out]valThe resulting integer.
Returns
The status of the conversion.