MQTT Communication
Smart Factory
myJSON Class Reference

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
 

Detailed Description

myJSON class handels the conversion from the JSON-Format into a struct

Definition at line 28 of file myJSON.h.

Constructor & Destructor Documentation

◆ myJSON()

myJSON::myJSON ( const size_t  ParsCapacity)

Construct a new myJSON object.

Definition at line 16 of file myJSON.cpp.

Member Function Documentation

◆ parsingJSONToStruct()

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.

Parameters
json- pointer to a char-array in json-format
Returns
myJSONStr - Struct

Definition at line 19 of file myJSON.cpp.

Member Data Documentation

◆ lastMessage

String myJSON::lastMessage = "init"

Definition at line 48 of file myJSON.h.

◆ pParsCapacity

const size_t myJSON::pParsCapacity
private

Definition at line 51 of file myJSON.h.


The documentation for this class was generated from the following files: