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
myJSONStr::req
String req
Request.
Definition:
myJSONStr.h:40
myJSONStr
myJSON Struct defines the format of the messages
Definition:
myJSONStr.h:33
myJSONStr::cargo
String cargo
Cargo.
Definition:
myJSONStr.h:41
myJSONStr::line
int line
Line.
Definition:
myJSONStr.h:38
myJSONStr::error
bool error
Error-token.
Definition:
myJSONStr.h:43
myJSONStr::status
String status
Status.
Definition:
myJSONStr.h:36
myJSONStr::topic
String topic
MQTT topic.
Definition:
myJSONStr.h:35
myJSONStr::sector
String sector
Sector.
Definition:
myJSONStr.h:37
myJSONStr::ack
String ack
Acknoledgement.
Definition:
myJSONStr.h:39
myJSONStr::token
bool token
Gateway and Reset-token.
Definition:
myJSONStr.h:42
src
myJSONStr.h
Generated by
1.8.15