Update mqtt topic
This commit is contained in:
parent
129e5ed16d
commit
ba24d01179
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user