bmsd/mqtt.h

Tue, 01 Jan 2019 16:24:17 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Tue, 01 Jan 2019 16:24:17 +0100
changeset 162
45248acb6252
parent 0
033898178630
child 679
48f8f3fce7c0
permissions
-rw-r--r--

Added contents on the Taste tab. Fixed a locked checkbox bug. Disable tabs depending on the project stage.

#ifndef _MQTT_H
#define	_MQTT_H

#define STATUS_CONNECTING 0
#define STATUS_CONNACK_RECVD 1
#define STATUS_WAITING 2


/**
 * @brief Connect to the MQTT server.
 * @return 0 if success, else the connection failed.
 */
int mqtt_connect(void);

/**
 * @brief Disconnect from the MQTT server.
 */
void mqtt_disconnect(void);

#endif

mercurial