From 573369e23f84c7fe9c8245ddcb45043d4f5daaf8 Mon Sep 17 00:00:00 2001 From: Badger Date: Sun, 18 Apr 2021 09:03:47 +0000 Subject: [PATCH] Add 'tempResponse.json' --- tempResponse.json | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 tempResponse.json diff --git a/tempResponse.json b/tempResponse.json new file mode 100644 index 0000000..c5178b9 --- /dev/null +++ b/tempResponse.json @@ -0,0 +1,33 @@ +//This would be published to the mqtt path of "{macAddress}/readings" +{ + //The "T" can be omitted if preferred, this would also mean we remove the ":" in the time. + "firstReading": "20210408T17:55", + "readings": { + "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" +} \ No newline at end of file