微控制器上的MQTT库 [英] MQTT Library on Microcontroller

查看:78
本文介绍了微控制器上的MQTT库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用MQtt协议作为Messing协议.我想使用CCS编译器将Mqtt库移植到微控制器TMS470(德州仪器)上.由于我是本协议的新手,任何人都可以建议我如何通过GPRS模块使用该协议.我对MQtt进行了一些研究.但是我不知道如何开始.打开TCP/IP之后,如何发布或订阅数据.通常如何移植库.而我将在哪里获得图书馆

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

推荐答案

您可以使用Paho嵌入式客户端库:

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

使用该库,您只需实现用于从GPRS模块(网络)和时间管理(计时器)进行写入和读取的逻辑.

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

作为示例,您可以查看我的Arduino MQTT库: https://github.com/256dpi /arduino-mqtt . Paho嵌入式客户端存储库中还有更多示例.

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.

这篇关于微控制器上的MQTT库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆