Update mqtt topic

This commit is contained in:
cazagen 2019-04-21 20:38:43 +01:00
parent 129e5ed16d
commit ba24d01179
Signed by: cazagen
GPG Key ID: C326FEEE25FF7915

View File

@ -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)