1. 树莓派(Raspberry Pi)安装使用 Eclipse paho C库
MQTT C Client for Posix and Windows
The Paho MQTT C Client is a fully featured MQTT client written in ANSI standard C. C was chosen rather than C++ to maximize portability. A C++ API over this library is also available in Paho.
1.1. 安装
[注意]若提示 openssl 错误
sudo apt-get install libssl-dev
下载安装。
# 下载源代码包
git clone https://github.com/eclipse/paho.mqtt.c.git
# 进入目录
cd paho.mqtt.c
# 编译
make
# 安装
sudo make install
sudo make install
出现错误...
install -m 644 build/output/doc/MQTTClient/man/man3/MQTTClient.h.3 /usr/local/share/man/man3
install: 无法获取'build/output/doc/MQTTClient/man/man3/MQTTClient.h.3' 的文件状态(stat): 没有那个文件或目录
Makefile:273: recipe for target 'ins