Browse Source

this solves mqtt publishing bug

#1274 bug  fix
Matt O'Gorman 9 years ago
parent
commit
ecfc89e4d7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/models/agents/mqtt_agent.rb

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

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