thermferm/mqtt.h

Mon, 08 May 2017 16:26:02 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Mon, 08 May 2017 16:26:02 +0200
changeset 506
cdcd07bbee30
parent 504
862de87f9f89
child 515
7ab5cf2afc0c
permissions
-rw-r--r--

New MQTT protocol

#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

mercurial