bmsd/co2meters.h

changeset 502
a8a6901b5a99
child 678
14322825cb3d
equal deleted inserted replaced
501:9c41e865144a 502:a8a6901b5a99
1 /**
2 * @file co2meters.h
3 */
4
5 #ifndef _CO2METERS_H
6 #define _CO2METERS_H
7
8 void co2meter_dump(sys_co2meter_list *co2meter);
9
10 /**
11 * @brief Birth of a co2meter or data update. Create it in the database if
12 * never seen before, else just update the database entry.
13 * @param topic The MQTT topic string, contains the co2meter type and name.
14 * @param payload The JSON formatted payload with the co2meter details.
15 */
16 void co2meter_birth_data(char *topic, char *payload);
17
18 /**
19 * @brief Data logging from co2meters.
20 * @param topic The MQTT topic string, contains the co2meter type and name.
21 * @param payload The JSON formatted payload with the co2meter details.
22 */
23 void co2meter_log(char *topic, char *payload);
24
25
26 #endif

mercurial