AWS IoT Firmware
Firmware code for AWS IoT Devices
mqtt.hpp
Go to the documentation of this file.
1 
14 #ifndef _MQTT_UTIL_H_
15 #define _MQTT_UTIL_H_
16 
17 #include "mgos.h"
18 #include "mgos_mqtt.h"
19 
20 void sub(struct mg_connection *c, const char *fmt, ...);
21 void pub(struct mg_connection *c, const char *pubTopic, const char *fmt, ...);
22 
23 #endif
24 
void pub(struct mg_connection *mgConnection, const char *pubTopic, const char *fmt,...)
used for publishing to a specific channel of the mqtt server
Definition: mqtt.cpp:61
void sub(struct mg_connection *mgConnection, const char *fmt,...)
function used for subscribing to mqtt channels, has variable arguments support
Definition: mqtt.cpp:36