thermferm/mqtt.h@2da3d3340403
thermferm/mqtt.h
Fri, 19 May 2017 16:34:21 +0200
- author
- Michiel Broek <mbroek@mbse.eu>
- date
- Fri, 19 May 2017 16:34:21 +0200
- changeset 510
- 2da3d3340403
- parent 506
-
cdcd07bbee30
- child 515
-
7ab5cf2afc0c
- permissions
- -rw-r--r--
Version 0.6.0. The MQTT data messages are now allways the same length so that openhab will function with the message updates.
#ifndef _MQTT_H
#define _MQTT_H
#ifdef HAVE_MOSQUITTO_H
#define STATUS_CONNECTING 0
#define STATUS_CONNACK_RECVD 1
#define STATUS_WAITING 2
#endif
/*
* Public functions
*/
void mqtt_connect(void);
void mqtt_disconnect(void);
void publishDData(units_list *);
void publishNData(bool, int);
#endif