MQTT Communication
Smart Factory
|
myJSON class handels the conversion from the JSON-Format into a struct More...
#include <myJSON.h>
Public Member Functions | |
myJSON (const size_t ParsCapacity) | |
Construct a new myJSON object. More... | |
myJSONStr | parsingJSONToStruct (const char *json) |
Parsing JSON-Format into myJSONStr. More... | |
Public Attributes | |
String | lastMessage = "init" |
Private Attributes | |
const size_t | pParsCapacity |
myJSON class handels the conversion from the JSON-Format into a struct
myJSON::myJSON | ( | const size_t | ParsCapacity | ) |
Construct a new myJSON object.
Definition at line 16 of file myJSON.cpp.
myJSONStr myJSON::parsingJSONToStruct | ( | const char * | json | ) |
Parsing JSON-Format into myJSONStr.
Populates myJsonStr from a string. If an error occures, the default myJsonStr is returned. If you change myJsonStr you also need to change this function.
json | - pointer to a char-array in json-format |
Definition at line 19 of file myJSON.cpp.