Skip to main content
DD-CAT IDE logoDD-CAT IDE

Tutorials

MQTT to cloud and UDT JSON passthrough

FavoriteIntermediate~20 minMQTTUDT JSONIoT

Key steps

  1. 1.Variable manager → Connections → new mqtt connection; fill in server/port/user/pass
  2. 2.Define a UDT type (e.g. device-status struct) and subscribe to a topic bound to the UDT variable
  3. 3.Bind UI widgets with dot paths like {"var":"dev.temp"} to read JSON fields directly
  4. 4.Use the simulator to verify interop with a desktop MQTT peer, then connect to the real broker
  5. 5.Watch sys_mqtt_* system variables for connection state and TX/RX counts