Set the QoS to 2 when subscribing to bitlair/state

This commit is contained in:
polyfloyd 2016-10-02 13:41:06 +02:00
parent 9873077532
commit 65d4a70ce7

View file

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