MQTT Communication
Smart Factory
|
Implementation of the Connection class. More...
#include "MQTTCommunication.h"
Go to the source code of this file.
Functions | |
void | callback (char *topic, byte *payload, unsigned int length) |
If the client is used to subscribe to topics, a callback function must be provided in the constructor. his function is called when new messages arrive at the client. More... | |
Variables | |
myJSON | _myjson (MAX_JSON_PARSE_SIZE) |
instance of myJSON More... | |
CircularBuffer< myJSONStr, MAX_JSON_MESSAGES_SAVED > | _buffer |
instance of CircularBuffer More... | |
Implementation of the Connection class.
Definition in file MQTTCommunication.cpp.
void callback | ( | char * | topic, |
byte * | payload, | ||
unsigned int | length | ||
) |
If the client is used to subscribe to topics, a callback function must be provided in the constructor. his function is called when new messages arrive at the client.
Definition at line 32 of file MQTTCommunication.cpp.
CircularBuffer<myJSONStr, MAX_JSON_MESSAGES_SAVED> _buffer |
instance of CircularBuffer
Declares a global Circular Buffer of type myJSONStr with max Elements of MAX_JSON_MESSAGES_SAVED.
Definition at line 26 of file MQTTCommunication.cpp.
myJSON _myjson(MAX_JSON_PARSE_SIZE) |