Update 'tempResponse.json'

This commit is contained in:
Badger
2021-04-26 09:48:26 +00:00
parent 573369e23f
commit 144c2dd931

View File

@@ -1,33 +1,9 @@
//This would be published to the mqtt path of "{macAddress}/readings" //This would be published to the mqtt path of "{macAddress}/readings"
//Most compact version with assuming data alignment
//First reading is in epoch time as it is smaller than any other time variant
//Sensor format is "SensorIdentifier": "offset,reading,..."
{ {
//The "T" can be omitted if preferred, this would also mean we remove the ":" in the time. "firstReading": "1619043239",
"firstReading": "20210408T17:55", "0.4": "0,12121212,2,12121212",
"readings": { "1.1": "1,13131313,4,13131313"
"D1.1": {
//Same as inital time
"0": "11546546",
//One minute offset
"1": "11546547",
//Two minutes offset
"2": "11578545"
},
"D2.12": {
//Same as inital time
"0": "11546546",
//One minute offset
"1": "11546547",
//Two minutes offset
"2": "11578545"
}
}
}
//An alternate way to send the readings to save space would be the following:
//This would be published to the mqtt path of "{macAddress}/readings/{deviceIdentifier}", the di would be D1.1 and the like.
{
//The "T" can be omitted if preferred, this would also mean we remove the ":" in the time.
"firstReading": "20210408T17:55",
//The format of the following is "|{offset in minutes}|{reading}", this can also just be csv where it goes "{offset},{reading}"
"data": "|0|121212|1|121212|2|121212"
} }