Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The MQTT message that we are posting is configured in the following section (you do not have to change it):

    :local obj "{\

        \

           \"ts\":$ts,\

           \"values\":{\

            \"id\":\"$[$minimizeMac address=$address]\",\

            \"rssi\":\"$rssi\",\

            \"temp\":\"$temp\",\

            \"ad\":\"$ad\"\

            }\

        }"

The message that is structured per the example above will be displayed in JSON as:

[

  {

    "ts": 1661333913375,

    "values": {

      "id": "2CC81B4BBB0A",

      "rssi": "-43",

      "temp": "0x1939",

      "ad": "15ff4f0901002de0ffff010000003919877c54000061"

    }

  }

]