簡述:
試著把 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