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

◆ to_string

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.

Parameters
[in]sensor_valSensor value to represent.
[out]strString buffer to fill. Should be BT_MESH_SENSOR_CH_STR_LEN bytes long.
[in]lenLength of str buffer.
Returns
The number of characters that would have been writen if len had been big enough, or (negative) error code on error.