initial release
This commit is contained in:
13
mqtt.h
Normal file
13
mqtt.h
Normal file
@ -0,0 +1,13 @@
|
||||
#ifndef __MQTT_H__
|
||||
#define __MQTT_H__
|
||||
|
||||
#define TOPIC_MAXLEN 255
|
||||
#define TIC_QOS 0
|
||||
|
||||
extern struct mosquitto *mqtt_open(const char *host, int port, int keepalive);
|
||||
extern void mqtt_close(struct mosquitto *mosq);
|
||||
extern int mqtt_publish(struct mosquitto *mosq, const char *topic_prefix, const char *topic_suffix, const void *payload, int qos);
|
||||
extern const char *mqtt_strerror(int err);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user