Skip to content

Commit 0f10dac

Browse files
Merge pull request #11 from makerslocal/fix-topic-match
Fix topic/sub matching.
2 parents f96748b + e9195e3 commit 0f10dac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dooblr/mqttclient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def _on_message(self, client, userdata, message):
3535
self._logger.debug("Received message on topic {t}: {m}".format(t=message.topic, m=message.payload))
3636
for measurement in self._measurements:
3737
for topic in self._measurements[measurement]["topics"]:
38-
if mqtt.topic_matches_sub(message.topic, topic):
38+
if mqtt.topic_matches_sub(topic, message.topic):
3939
try:
4040
parsed_message = self._parse_message(measurement, message.payload)
4141
except DooblrMqttError as e:

0 commit comments

Comments
 (0)