nRF Connect SDK API 2.8.99
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
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.