You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.1 KiB

  1. //This would be published to the mqtt path of "{macAddress}/readings"
  2. {
  3. //The "T" can be omitted if preferred, this would also mean we remove the ":" in the time.
  4. "firstReading": "20210408T17:55",
  5. "readings": {
  6. "D1.1": {
  7. //Same as inital time
  8. "0": "11546546",
  9. //One minute offset
  10. "1": "11546547",
  11. //Two minutes offset
  12. "2": "11578545"
  13. },
  14. "D2.12": {
  15. //Same as inital time
  16. "0": "11546546",
  17. //One minute offset
  18. "1": "11546547",
  19. //Two minutes offset
  20. "2": "11578545"
  21. }
  22. }
  23. }
  24. //An alternate way to send the readings to save space would be the following:
  25. //This would be published to the mqtt path of "{macAddress}/readings/{deviceIdentifier}", the di would be D1.1 and the like.
  26. {
  27. //The "T" can be omitted if preferred, this would also mean we remove the ":" in the time.
  28. "firstReading": "20210408T17:55",
  29. //The format of the following is "|{offset in minutes}|{reading}", this can also just be csv where it goes "{offset},{reading}"
  30. "data": "|0|121212|1|121212|2|121212"
  31. }