This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TM4C123GH6PZ: publishing sensor data over MQTT Protocol

Part Number: TM4C123GH6PZ
Other Parts Discussed in Thread: ENERGIA, CC3100
Hello All,
I am beginner to MQTT protocol, I want to publish some sensor data on server over MQTT protocol through ESP8266 Wi-Fi module. I am using TM4C123GXL-Launchpad and eclipse Paho. 
Does anyone has a sample code which will do the same thing or to begin with? Any suggestion to understand these things better are welcome.
Board-EKTM4C123GXL
Compiler version- TI v5.2.5
If anyone have some suggestion kindly reply.
Thanks.
  • Hello Isabel,

    Looks like you are using ESP8266 to connect to Internet. Quick Google search shows that this module has its own TCP/IP stack. That means the code (running on TM4C123 device) should implement MQTT protocol on top of the ESP8266's interface API.

    Unfortunately TI does not provide such code and we don't have any code example to start with.

    Since ESP8266 is mainly developed for Ardunio community there is a chance that an MQTT client implementation for ESP8266 exists in Ardunio, in which case it can be ported to Energia relatively easily. Energia can run on TM4C123 devices.
    FYI: This forum does not support Energia but for more information you can post on the following forum forum.43oh.com/.../

    Alternatively you could use CC3100 WiFi solution, which provides MQTT client. But the MQTT client has to be ported to TM4C devices.

    Thanks,
    Sai