Announcement

Collapse
No announcement yet.

JSON formatting of payload

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • JSON formatting of payload

    Hello,

    I receive a payload that looks like this:

    {"sDndStat": "enabled", "sMainBrush": "12 days, 12:00:00", "sState": "Charging", "sError": "No error", "sBattery": "100", "sFanspeed": "38", "sCarpetMode": "True", "sSerial": "R0xxxxxxxxxxxx", "sVolume": "72", "sTimezone": "Europe/Stockholm", "sFiltertot": "6 days, 6:00:00", "sSideBrushTot": "8 days, 8:00:00"}

    But it is only decoded into two devices; "sDndStat" and "sMainBrush". I guess this is because there is a comma in "sMainBrush"'s value; "12 days, 12:00:00".

    Is there any way around this?

  • #2
    Actually the issue is the space after the colon before the quote. It is fixed in http://mcsSprinklers.com/mcsMQTT_4_1_0_2.zip. Just replace the HSPI_mcsMQTT.exe from the zip with the one that is in your HS folder.

    Comment


    • #3
      You are correct! It works now. Thank you.

      Comment

      Working...
      X