MQTT Communication
Smart Factory
myJSONStr.h
Go to the documentation of this file.
1 
13 #ifndef MYJSONSTR_H
14 #define MYJSONSTR_H
15 
16 // {
17 // "id": "hostanme",
18 // "topic": "tpois/topic",
19 // "status": "driving",
20 // "sector": "transit",
21 // "line": 1,
22 // "ack":"hostname",
23 // "req":"hostname",
24 // "cargo":"gemuse",
25 // "token":false;
26 // "error":false
27 // }
28 
33 struct myJSONStr {
34  String id = "-1";
35  String topic = "-1";
36  String status = "-1";
37  String sector = "-1";
38  int line = -1;
39  String ack = "-1";
40  String req = "-1";
41  String cargo = "-1";
42  bool token = false;
43  bool error = false;
44 };
45 #endif
String req
Request.
Definition: myJSONStr.h:40
myJSON Struct defines the format of the messages
Definition: myJSONStr.h:33
String cargo
Cargo.
Definition: myJSONStr.h:41
int line
Line.
Definition: myJSONStr.h:38
bool error
Error-token.
Definition: myJSONStr.h:43
String status
Status.
Definition: myJSONStr.h:36
String topic
MQTT topic.
Definition: myJSONStr.h:35
String sector
Sector.
Definition: myJSONStr.h:37
String ack
Acknoledgement.
Definition: myJSONStr.h:39
bool token
Gateway and Reset-token.
Definition: myJSONStr.h:42