Skip to content
taylor edited this page May 13, 2019 · 6 revisions

Welcome to the W6100EVB-MQTT wiki!

Index


MQTT Example for W6100-EVB

Common to Any MCU, Easy to Add-on. Internet Offload co-Processor, HW TCP/IP chip, best fits for low-end Non-OS devices connecting to Ethernet for the Internet of Things. These will be updated continuously.

This is MQTT Example that connecting to test.mosquitto.org via IPv6 and subscribing topic of W6100. And you can publish by your self every 10 seconds when you defined PUBLISH_MYSELF value as 1.

Hardware Environment

  • W6100EVB
    • connecting Micro usb.
    • connecting Ethernet cable.

Software Environment

In case of used to TrueSTUDIO, It is the same as HTTP Server example.

Run

  • Demo Environment & Program

  • Demo Result

    • Power On and push Reset button to start Program
    • Program Run Serial display

    • The W6100EVB connects to test.mosquitto.org and subscribes to W6100 topics.

    • Set Connection Host, Port

      • Host : test.mosquitto.org
      • Port : 8080

    • And Connect

    • Finally, you can publish on W6100 topic.

    • And you can see the message from test.mosquitto.org.

    Code review

    • main.c code flow

    Test packet capture file

    -Test packet capture file : W6100EVB-MQTT.zip

Clone this wiki locally