Update mqtt_agent.rb

Matt O'Gorman 9 年之前
父节点
当前提交
fa338a981f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/models/agents/mqtt_agent.rb

+ 1 - 1
app/models/agents/mqtt_agent.rb

@@ -109,7 +109,7 @@ module Agents
109 109
     def receive(incoming_events)
110 110
       mqtt_client.connect do |c|
111 111
         incoming_events.each do |event|
112
-          c.publish(interpolated(event)['topic'], event.payload)
112
+          c.publish(interpolated(event)['topic'], event.payload['message'])
113 113
         end
114 114
       end
115 115
     end