Change QoS level to 1 when publishing messages. #622
This commit is contained in:
parent
0ababa77c2
commit
f43d2f10fe
1 changed files with 3 additions and 1 deletions
|
|
@ -29,7 +29,9 @@ def redis_listen(client, logger):
|
|||
if data:
|
||||
info = data[1].split('|')
|
||||
logger.info("Channel: " + info[0] + " message: " + info[1])
|
||||
client.publish(info[0], info[1])
|
||||
#client.publish(info[0], info[1])
|
||||
# set QoS level to 1 for published messages
|
||||
client.publish(info[0], info[1], 1)
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue