Versions Compared

Key

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

...

  • serverName: The server name as shown in the MQTT Engine > Servers configuration
    • Note: This is the Name and not the URL configuration parameter
    • Version 4.0.23 and newer support either serverName or serverSetName
  • mqttTopic: The MQTT Topic to publish on
  • payload: The MQTT payload
  • qos: The MQTT quality of service to publish on
  • retain: Whether or not to set the retain flag in the MQTT message

...

payload=str('{"name":"John", "age":30, "car":"BMW"}').encode()

payload='{"testButtonmyTestTag":"' + str(system.tag.read("[default]testButtonmyTestTag").value) + '"}'


Additional Resources

...