3.11.7 MQTT Demo

This application demonstrates how a user run a MQTT Client using third party Paho software on WINC1500 device. The user would need to use "MQTT.fx" third party Mqtt Client application to receive message posted by MQTT Client running on WINC1500 device once it connects to the MQTT server.

  1. Download the MQTT.fx Third Party Mqtt Client Application and open it on Laptop.

  2. Connect the MQTT.fx Application to the MQTT Server - mqtt.eclipseprojects.io with port 1883.

    mqtt_bypass_fx1
  3. Make the MQTT.fx Application susbcribe to Topic "MQTT_NET_Client topic".

    mqtt_bypass_fx2
  4. Configure the wifi parameters using "wifi set" command.

    wifi_config
  5. Enter the command "mqtt start".

    mqtt_bypass_start
  6. Enter the command "appdemo start 1 18". The device will connect to the network and IP address will be displayed on the terminal window.

    mqtt_bypass_ap_connected
  7. The MQTT Client on the WINC1500 device shall connect to the MQTT Server - mqtt.eclipseprojects.io.

    mqtt_bypass_client_connected
  8. After connecting to MQTT Server, the MQTT Client on the WINC1500 device shall subscribe to Topic "MQTT_NET_Client topic".

    mqtt_bypass_subscribed
  9. The MQTT Client on the WINC1500 device shall publish the message "MQTT NET Demo Test Message" to Topic "MQTT_NET_Client topic".

    mqtt_bypass_published
  10. MQTT.fx Application receives the message "MQTT NET Demo Test Message" on the Topic "MQTT_NET_Client topic" sent by the MQTT Client running on the WINC1500.

    mqtt_bypass_fx3
  11. The message "MQTT NET Demo Test Message" will be published from MQTT.fx Application. Since it is subcribing to the same topic "MQTT_NET_Client topic". The MQTT demo will exit after publishing the message.

    mqtt_bypass_completed

NOTE: Sometimes the MQTT demo will give connection error, if the default broker mqtt.eclipseprojects.io is down. If so try the demo with this broker : broker.hivemq.com

Back to top