Set the QoS to 2 when subscribing to bitlair/state
This commit is contained in:
parent
9873077532
commit
65d4a70ce7
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ if __name__ == '__main__':
|
|||
current_state = message.payload == b'open'
|
||||
current_state_change = time.time()
|
||||
mqttc.on_message = on_message
|
||||
mqttc.subscribe('bitlair/state')
|
||||
mqttc.subscribe('bitlair/state', qos=2)
|
||||
|
||||
app = make_app()
|
||||
app.listen(8888)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue