Update mqtt_agent.rb

Matt O'Gorman %!s(int64=9) %!d(string=hace) años
padre
commit
fa338a981f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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