MQTT

安装前要准备好:

sudo apt install libssl-dev libc-ares-dev uuid-dev g++

mosquitto 下载源码:

http://mosquitto.org/files/source/

wget http://mosquitto.org/files/source/mosquitto-1.4.14.tar.gz

tar zxvf mosquitto-1.4.14.tar.gz

cd mosquitto-1.4.14

make

sudo make install

可能会出现的问题;

  1. libmosquitto.so.1: cannot open shared object file: No such file or directory. 解决方法:ln -s /usr/local/lib/libmosquitto.so.1 /usr/lib/libmosquitto.so.1
  2. ERROR: Invalid user ‘mosquitto’.解决方法:adduser mosquitto

 

MQTT学习笔记——树莓派MQTT客户端 使用Mosquitto和paho-python:

http://blog.csdn.net/xukai871105/article/details/39255089

 

MQTT安全篇:

http://ms.csdn.net/share/5DD3BA82E6E7975B611433FF88433D38_1_IPHONE_APP

打赏