bmsd/mqtt.h

Sat, 26 Jan 2019 15:03:09 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Sat, 26 Jan 2019 15:03:09 +0100
changeset 209
dc30801e6961
parent 0
033898178630
child 679
48f8f3fce7c0
permissions
-rw-r--r--

Import set tun_material from the specifix heat value. Equipment database uses POST instead of GET. Equipment editor screen in style with other inventory screens. In stock print now uses the type indexes to translate to text. Also show the correct unit and values of the yeast.

#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