sudo ./dependenceInstall.sh
Owl is a MQTT broker based on Tornado, a uncomplete implementation of MQTT protocol v3.1. Future releases of Owl will support multi process and distributed.
Here is a simple example using Owl:
from tornado.ioloop import IOLoop
from tornado.mqttserver import MqttServer
if __name__ == "__main__":
server = MqttServer()
# Will be supported in the future
# server.bind(8888)
# server.start(0)
server.listen(8888)
IOLoop.current().start()
This is an example of a single process, multi-process will be supported in the future.
Owl is tested against Eclipse Paho's MQTT Conformance/Interoperability Testing.
hostname localhost port 1883
clean up starting
clean up finished
Basic test starting
Basic test succeeded
Retained message test starting
Retained message test succeeded
This server is not queueing QoS 0 messages for offline clients
Offline message queueing test succeeded
Will message test succeeded
Overlapping subscriptions test starting
This server is publishing one message per each matching overlapping subscription.
Overlapping subscriptions test succeeded
Keepalive test starting
Keepalive test succeeded
Redelivery on reconnect test starting
Redelivery on reconnect test succeeded
test suite succeeded
Documentation and links to additional resources are available at http://www.tornadoweb.org