14 */ |
14 */ |
15 void pub_domoticz_temp(int, int); |
15 void pub_domoticz_temp(int, int); |
16 void pub_domoticz_output(int, int); |
16 void pub_domoticz_output(int, int); |
17 void mqtt_connect(void); |
17 void mqtt_connect(void); |
18 void mqtt_disconnect(void); |
18 void mqtt_disconnect(void); |
19 void publishDData(units_list *); |
19 |
20 void publishNData(bool, int); |
20 /** |
|
21 * @brief Publish unit data. |
|
22 * @param unit Unit data structure. |
|
23 */ |
|
24 void publishDData(units_list *unit); |
|
25 |
|
26 /** |
|
27 * @brief Publish unit birth. |
|
28 * @param unit Unit data structure. |
|
29 */ |
|
30 void publishDBirth(units_list *unit); |
|
31 |
|
32 /** |
|
33 * @brief Publish death of a unit. |
|
34 * @param unit Unit data structure. |
|
35 */ |
|
36 void publishDDeath(units_list *unit); |
|
37 |
|
38 /** |
|
39 * @brief Publish Node data or birth message. |
|
40 * @param birth If true send a birh message, else a regular data update. |
|
41 * @param flag Bit flag to enable control messages. |
|
42 */ |
|
43 void publishNData(bool birth, int flag); |
21 |
44 |
22 #endif |
45 #endif |