您的位置:首页 > 编程语言 > Qt开发

Python 网络编程探索 MQTT

2013-04-06 18:26 351 查看
有用的文档链接:

使用python演绎和使用MQTT协议

记得用google

---------------------------------------------------------------------------------------------------------------------------------------

Python

Require the mosquitto Python API

Repeatedly publish (useful for testing)

Scrape serial port data, publish on topic

信息地址: http://mqtt.org/wiki/doku.php/python_examples

————————————————————————————————--------------------------------------------------------------

Mosquitto

An Open Source MQTT v3.1 Broker

Python

This page describes the Mosquitto Python module which allows you to build MQTT clients in Python. It is also described in mosquitto.py itself and can be accessed with “pydoc mosquitto” if it is installed.

A simple subscribe example is available at https://bitbucket.org/oojah/mosquitto/src/tip/lib/python/sub.py

To use the Python module, first import it: .............

for more information you should visit: http://mosquitto.org/documentation/python/

---------------------------------------------------------------------------------------------------------------------------------------

First steps using Python and MQTT (using pynotify on Ubuntu)

Until recently developing MQTT clients in anything but perl was a little tricky due to a selection of badly documented, restrictively licensed client libraries (in PHP, Java and C). After a lot of hard work on the part of Roger Light (@ralight developer behind the OSS MQTT BrokerMosquitto) there is now another solution available. ................

(P.S. this article was written in 2010. Probably it is out of date.)

for more information you could visit: http://chemicaloliver.net/programming/first-steps-using-python-and-mqtt/

____________________________________________________________________________________________

[b]A tutorial about how to write Hello MQTT in python[/b]

Teach You to Write a MQTT python Client

Hello MQTT

For an upcoming project, I needed a light-weight publish-subscribe system, and I discovered MQTT.......

(P.S. This article was submitted in 2012. So it probably be the right tutorial. )

For more information you could visit: http://michaelconnors.net/article/462/hello-mqtt

___________________________________________________________________________________________________

{这里还有一些关于实现MQTT传输命令的资料}

http://www.cnblogs.com/glony/articles/2308165.html

这个是关于Android平台的,用的是JAVA编写的程序。都是写好的类封装起来。看看好用不。

标题为

采用MQTT协议实现Android消息推送 (这个内容我在2011年的时候就已经实现了,在android虚拟机上实现的,那时候我还没有android手机)

不过目前看来,前景非常好 :)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: