Преглед на файлове

Update mqtt2graphite.py

small bug highly annoying bug ;-)
Job Snijders преди 12 години
родител
ревизия
1b417a89e5
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      mqtt2graphite.py

+ 1 - 1
mqtt2graphite.py

@@ -67,7 +67,7 @@ def on_message(mosq, userdata, msg):
     # Find out how to handle the topic in this message: slurp through
     # our map 
     for t in map:
-        if mosquitto.topic_matches_sub(msg.topic, t):
+        if mosquitto.topic_matches_sub(t, msg.topic):
             # print "%s matches MAP(%s) => %s" % (msg.topic, t, map[t])
 
             # Must we rename the received msg topic into a different