Print Ruuvi Sensor data in human readable JSON.
Takes Ruuvi sensor data as input, checks the provided fields and LOGs valid data if available and "NAN" if no valid data is available. Pseudocode example:
float values[3];
data.values = values;
data.provided = {
.datas.humidity_rh = 1,
.datas.pressure_pa = 1,
.datas.temperature_c = 1
};
void rd_sensor_data_print(const rd_sensor_data_t *const p_data, const rd_test_print_fp printfp)
Print Ruuvi Sensor data in human readable JSON.
Interface to sensor. Some sensors can implement additional functions. The additional functions are de...
rd_sensor_data_fp data_get
rd_sensor_data_fp
- Parameters
-
[in] | p_data | Pointer to data to print. |
[in] | printfp | Function to print data with, returns void and takes const char* const as param. |