nRF Connect SDK API 0.1.0
|
int bt_mesh_sensor_ch_to_str | ( | const struct bt_mesh_sensor_value * | ch, |
char * | str, | ||
size_t | len | ||
) |
#include <include/bluetooth/mesh/sensor.h>
Get a human readable representation of a single sensor channel.
embed:rst:inline :kconfig:option:`CONFIG_CBPRINTF_FP_SUPPORT`to be enabled.
[in] | ch | Sensor channel to represent. |
[out] | str | String buffer to fill. Should be BT_MESH_SENSOR_CH_STR_LEN bytes long. |
[in] | len | Length of str buffer. |
str
is sufficiently large.