2019年10月7日 星期一

[ NT98515] CROSSCOMPILE ECLIPSE PAHO MQTT C Client

簡述:

試著把 Eclipse Paho MQTT C client  移植到 NT98515 的平台, 並且測試驗證.

下載 source:

git clone https://github.com/eclipse/paho.mqtt.c


make:

cmake

$ cmake –DPAHO_BUILD_DOCUMENTATION=FALSE –DPAHO_BUILD_SAMPLES=TRUE –DPAHO_MQTT_C_PATH=../../paho.mqtt.c ..

修改 Makefile, 加入 openssl 的路徑

CFLAGS += -I../build/openssl/include
LDFLAGS += -L../build/openssl/lib

然後 make

$ make

測試 :

https://ming-yi.github.io/2016/08/17/Mosquitto%20MQTT%20%E5%AE%89%E8%A3%9D/

http://www.steves-internet-guide.com/mosquitto_pub-sub-clients/

https://www.eclipse.org/paho/clients/c/

https://www.eclipse.org/paho/clients/c/

paho_c_pub -t my_topic --connection mqtt.eclipse.org:1883

https://www.yatta.de/profiles/hub/GoKv

https://blog.csdn.net/rambomatrix/article/details/64906310

https://bismog.github.io/2019/02/23/play-with-paho-mqtt-c.html

https://www.plcnext-community.net/index.php?option=com_content&view=article&id=257:crosscompile-guide-mosquitto&catid=78&Itemid=366&lang=en

沒有留言:

張貼留言

[ NT98515] CROSSCOMPILE ECLIPSE PAHO MQTT C Client

簡述: 試著把 Eclipse Paho MQTT C client  移植到 NT98515 的平台, 並且測試驗證. 下載 source: git clone https://github.com/eclipse/paho.mqtt.c make: cmake $ cmake...