20 DBFUNCCALLln(
"myJSON::parsingJSONToStruct(const char* json)");
25 DeserializationError error = deserializeJson(doc, json);
27 DBWARNING(
"deserializeJson() failed: ");
28 DBWARNINGln(error.c_str());
29 tempStr.
id =
"Pars failed";
37 tempStr.
id = doc[
"id"].as<String>();
38 tempStr.
status = doc[
"status"].as<String>();
39 tempStr.
sector = doc[
"sector"].as<String>();
40 tempStr.
line = doc[
"line"].as<
int>();
41 tempStr.
ack = doc[
"ack"].as<String>();
42 tempStr.
req = doc[
"req"].as<String>();
43 tempStr.
cargo = doc[
"cargo"].as<String>();
44 tempStr.
token = doc[
"token"].as<
bool>();
45 tempStr.
error = doc[
"error"].as<
bool>();
myJSON class handels the conversion from the JSON-Format into a struct
myJSON Struct defines the format of the messages
const size_t pParsCapacity
myJSON(const size_t ParsCapacity)
Construct a new myJSON object.
myJSONStr parsingJSONToStruct(const char *json)
Parsing JSON-Format into myJSONStr.
String ack
Acknoledgement.
bool token
Gateway and Reset-token.