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

◆ bt_mesh_sensor_ch_str()

const char * bt_mesh_sensor_ch_str ( const struct bt_mesh_sensor_value ch)

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

Get a human readable representation of a single sensor channel.

Note
This prints float values internally for most formats, which requires
embed:rst:inline :kconfig:option:`CONFIG_CBPRINTF_FP_SUPPORT` 
to be enabled.
This function is not thread safe.
Parameters
[in]chSensor channel to represent.
Returns
A string representing the sensor channel.