![]() |
nRF Connect SDK API 3.3.99
|
| int(*const bt_mesh_sensor_format_cb::to_string) (const struct bt_mesh_sensor_value *sensor_val, char *str, size_t len) |
Get a human readable representation of a bt_mesh_sensor_value.
| [in] | sensor_val | Sensor value to represent. |
| [out] | str | String buffer to fill. Should be BT_MESH_SENSOR_CH_STR_LEN bytes long. |
| [in] | len | Length of str buffer. |
len had been big enough, or (negative) error code on error.