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

◆ from_special_status

int(*const bt_mesh_sensor_format_cb::from_special_status) (const struct bt_mesh_sensor_format *format, enum bt_mesh_sensor_value_status status, struct bt_mesh_sensor_value *sensor_val)

Convert a special bt_mesh_sensor_value_status value to a bt_mesh_sensor_value.

Parameters
[in]formatFormat to use when encoding the sensor value.
[in]statusThe bt_mesh_sensor_value_status to convert.
[out]sensor_valThe resulting bt_mesh_sensor_value on success. Undefined otherwise.
Returns
0 on success, (negative) error code otherwise.