From ba24d011796cce6747bb292c9a257298dab56c89 Mon Sep 17 00:00:00 2001 From: Cameron Sharp Date: Sun, 21 Apr 2019 20:38:43 +0100 Subject: [PATCH] Update mqtt topic --- mqtt_run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mqtt_run.py b/mqtt_run.py index 820da2b..2122810 100644 --- a/mqtt_run.py +++ b/mqtt_run.py @@ -22,7 +22,7 @@ def send_jiffy(client, url): def on_connect(client, userdata, flags, rc): logging.debug("connected with result " + str(rc)) - client.subscribe('test/jiffy/#') + client.subscribe('display/nec/#') def on_message(client, userdata, msg): try: @@ -33,7 +33,7 @@ def on_message(client, userdata, msg): lastmsg = '' logging.debug("Error {}".format(e)) - if msg.topic == 'test/jiffy/image': + if msg.topic == 'display/nec/image': logging.debug('image message received') logging.debug('Image url is: ', lastmsg)