nRF Connect SDK API 2.8.99
|
enum bt_mesh_sensor_value_status bt_mesh_sensor_value_to_micro | ( | const struct bt_mesh_sensor_value * | sensor_val, |
int64_t * | val ) |
#include <include/bluetooth/mesh/sensor.h>
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.
[in] | sensor_val | The bt_mesh_sensor_value to convert. |
[out] | val | The resulting integer. |