首页 > 代码库 > mosquitto MQTT message broker on ubuntu/debian built from source
mosquitto MQTT message broker on ubuntu/debian built from source
what is mosquitto?
check this out!
http://mosquitto.org
what is MQTT?
check this out.
http://mqtt.org
sudo apt-get install libc-ares-dev libc-ares2 -ywget -c http://mosquitto.org/files/source/mosquitto-1.3.5.tar.gztar -xzvf mosquitto-1.3.5.tar.gz -C /usr/local/srccd /usr/local/src/mosquitto-1.3.5sudo makesudo make install
# if you can not find the libmosquitto.so.1
sudo ln -s /usr/local/lib/libmosquitto.so.1 /usr/lib/libmosquitto.so.1
sudo ldconfig
then try this:
Step 1.
Start the mosquitto server
mosquitto -v # v for more information
Here is another one which is in Chinese and understanding consuming. It is from here:
http://blog.csdn.net/xukai871105/article/details/39252653
Step 2.
Subscribe a topic
Step 3.
Publish a message to a topic
Explain:
3rd-party libs:
http://mosquitto.org/documentation/
One good in python mostly:
http://mosquitto.org/documentation/python/
download that from https://pypi.python.org/pypi/paho-mqtt
mosquitto MQTT message broker on ubuntu/debian built from source
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。