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

◆ bt_mesh_sensor_value_to_sensor_value()

enum bt_mesh_sensor_value_status bt_mesh_sensor_value_to_sensor_value ( const struct bt_mesh_sensor_value sensor_val,
struct sensor_value *  val 
)

#include <include/bluetooth/mesh/sensor.h>

Convert a bt_mesh_sensor_value instance to a sensor_value (include/zephyr/drivers/sensor.h).

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 sensor_value.
Returns
The status of the conversion.