sudo apt install git
sudo apt-get install libssl-dev
git clone https://github.com/eclipse/paho.mqtt.c.git
cd paho.mqtt.c
make && sudo make install
cd ..
git clone https://github.com/eclipse/paho.mqtt.cpp.git
cd paho.mqtt.cpp
make && sudo make install
安装mqtt库
于 2024-03-27 16:51:52 首次发布
本文介绍了在Linux系统中通过`sudoapt-getinstall`和`gitclone`命令安装PahoMQTTC和C++库的步骤,包括下载库文件并使用`make`和`sudomakeinstall`进行构建和安装。
摘要由CSDN通过智能技术生成