MQTT Communication
Smart Factory
myJSON.h
Go to the documentation of this file.
1 
14 #ifndef MYJSON_H__
15 #define MYJSON_H__
16 
17 #include "Arduino.h"
18 #include "myJSONStr.h"
19 
20 #include "LogConfiguration.h"
21 
22 #include <ArduinoJson.h> //https://arduinojson.org/
23 
28 class myJSON {
29  public:
34  myJSON(const size_t ParsCapacity);
35 
45  myJSONStr parsingJSONToStruct(const char* json);
46 
47  // String serialize(myJSONStr tempStr);
48  String lastMessage = "init"; //lastMessage is used to store the last received message
49 
50  private:
51  const size_t pParsCapacity;
52 };
53 #endif
myJSON Struct defines the format of the messages
Definition: myJSONStr.h:33
const size_t pParsCapacity
Definition: myJSON.h:51
myJSON(const size_t ParsCapacity)
Construct a new myJSON object.
Definition: myJSON.cpp:16
String lastMessage
Definition: myJSON.h:48
myJSON Struct defines the format of the messages
myJSONStr parsingJSONToStruct(const char *json)
Parsing JSON-Format into myJSONStr.
Definition: myJSON.cpp:19
myJSON class handels the conversion from the JSON-Format into a struct
Definition: myJSON.h:28