# HG changeset patch # User MWild1@gmail.com # Date 1385932998 0 # Node ID bec04c8c56f16627a058e02593b49545c59550e6 # Parent 37502ad2fcb8d704d6160c08ae592b968a66e38b Created wiki page through web user interface. diff -r 37502ad2fcb8 -r bec04c8c56f1 mod_pubsub_mqtt.wiki --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mod_pubsub_mqtt.wiki Sun Dec 01 21:23:18 2013 +0000 @@ -0,0 +1,41 @@ +#summary MQTT interface to Prosody's pubsub +#labels Stage-Beta + += Introduction = + +[http://mqtt.org/ MQTT] is a lightweight binary pubsub protocol suited to embedded devices. This module provides a way for MQTT clients to connect to Prosody and publish or subscribe to local pubsub nodes. + += Details = + +MQTT has the concept of 'topics' (similar to XMPP's pubsub 'nodes'). mod_pubsub_mqtt maps pubsub nodes to MQTT topics of the form `HOST/NODE', e.g. `pubsub.example.org/mynode`. + +== Limitations == +The current implementation is quite basic, and in particular: + + * Authentication is not supported + * SSL/TLS is not supported + * Only QoS level 0 is supported + +== Payloads == +XMPP payloads are always XML, but MQTT does not define a payload format. Therefore mod_pubsub_mqtt will attempt to convert data of certain recognised payload types. Currently supported: + + * JSON (see [http://xmpp.org/extensions/xep-0335.html XEP-0335] for the format) + * Plain UTF-8 text (wrapped inside ``) + +All other XMPP payload types are sent to the client directly as XML. Data published by MQTT clients is currently never translated, and always treated as UTF-8 text. + += Configuration = + +There is no special configuration for this module. Simply load it on your pubsub host like so: + +{{{ +Component "pubsub.example.org" "pubsub" + modules_enabled = { "pubsub_mqtt" } +}}} + +You may also configure which port(s) mod_pubsub_mqtt listens on using Prosody's standard config directives, such as `mqtt_ports`. Network settings *must* be specified in the global section of the config file, not under any particular pubsub component. The default port is 1883 (MQTT's standard port number). + += Compatibility = +|| trunk || Works || +|| 0.9 || Works || +|| 0.8 || Doesn't work || \ No newline at end of file