Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MQTT Library on Microcontroller

Tags:

c

mqtt

I want use MQtt Protocol as Messing protocol. I want to port the Mqtt Library on Microcontroller TMS470(Texas Instrument) with CCS Compiler. Since I am new to this Protocol, Can any body suggest me how use this protocol using the GPRS module. I made some study on MQtt. But i don't know how to start. After Opening the TCP/IP, how to publish or subscribe the data. Typically how to port the Library. And where i will get a library

like image 817
suman raj Avatar asked Dec 29 '14 19:12

suman raj


1 Answers

You can use the Paho embedded client library: https://eclipse.org/paho/clients/c/embedded.

Using this library you only have to implement the logic for writing and reading from your GPRS module (Network) and time management (Timer).

As an example you can look at my MQTT library for Arduino: https://github.com/256dpi/arduino-mqtt. There are also more examples in the Paho embedded client repository.

like image 180
256dpi Avatar answered Oct 04 '22 05:10

256dpi