码迷,mamicode.com
首页 > 系统相关 > 详细

mosquitto MQTT message broker on ubuntu/debian built from source

时间:2014-11-23 18:57:35      阅读:312      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   io   ar   color   os   sp   for   

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 -y
wget -c http://mosquitto.org/files/source/mosquitto-1.3.5.tar.gz
tar -xzvf mosquitto-1.3.5.tar.gz -C /usr/local/src
cd /usr/local/src/mosquitto-1.3.5
sudo make
sudo 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

bubuko.com,布布扣

 

Here is another one which is in Chinese and understanding consuming. It is from here:

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

bubuko.com,布布扣

Step 2.

Subscribe a topic

bubuko.com,布布扣

 

Step 3.

Publish a message to a topic

bubuko.com,布布扣

 

Explain:

bubuko.com,布布扣

 

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

标签:style   blog   http   io   ar   color   os   sp   for   

原文地址:http://www.cnblogs.com/spaceship9/p/4117200.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!