Hi,
I send this JSON string at Notecard WiFi v1. The sensor data is in this order temp, humid, light, batt, rssi.
const char testnote2[200] = "{"
"\"req\": \"note.add\","
"\"file\": \"sensor.qo\","
"\"sync\": true,"
"\"body\": {"
"\"temp\":20.5,"
"\"humid\":45,"
"\"light\":60,"
"\"batt\":3300,"
"\"rssi\":88"
"}}\n";
This is the JSON string I received at Notehub.
“file”: “sensor.qo”,
“body”: {
“batt”: 3300,
“humid”: 45,
“light”: 60,
“rssi”: 88,
“temp”: 20.5
},
Why is the received JSON string not in the correct order?
Regards,
Markel