--- a/mod_pubsub_mqtt/mod_pubsub_mqtt.lua Mon Feb 17 21:07:01 2014 +0100
+++ b/mod_pubsub_mqtt/mod_pubsub_mqtt.lua Wed Feb 19 17:57:32 2014 +0700
@@ -141,7 +141,7 @@
type = "publish";
id = "\000\000";
topic = module.host.."/"..event.node;
- data = data_translators[event.item.name.." "..event.item.attr.xmlns](event.item);
+ data = data_translators[tostring(event.item.name).." "..tostring(event.item.attr.xmlns)](event.item);
};
-- Broadcast to subscribers
module:log("debug", "Broadcasting PUBLISH to subscribers of %s/%s", module.host, event.node);