Software /
code /
prosody-modules
Diff
mod_pubsub_mqtt/mod_pubsub_mqtt.lua @ 1243:c2bf6b2102aa
mod_pubsub_mqtt: Change namespace of 'data' element to make it generic
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 02 Dec 2013 03:08:17 +0000 |
parent | 1240:e0d97eb52ab8 |
child | 1246:e76f7b6be20e |
line wrap: on
line diff
--- a/mod_pubsub_mqtt/mod_pubsub_mqtt.lua Mon Dec 02 03:07:48 2013 +0000 +++ b/mod_pubsub_mqtt/mod_pubsub_mqtt.lua Mon Dec 02 03:08:17 2013 +0000 @@ -41,7 +41,7 @@ end local id = "mqtt"; local ok, err = pubsub:publish(node, true, id, - st.stanza("data", { xmlns = "https://prosody.im/protocol/mqtt" }) + st.stanza("data", { xmlns = "https://prosody.im/protocol/data" }) :text(packet.data) ); if not ok then