Skip to content

Commit

Permalink
obi_mqtt: set check intervall to 500ms
Browse files Browse the repository at this point in the history
  • Loading branch information
mattzzw committed Jan 20, 2019
1 parent c40d4e5 commit 1b88013
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions obi_socket/obi_mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ def do_connect(client, config):
mqtt_con_status = e
else:
client.subscribe(config[cfg.idx('mqtt_subt')])
# setup timer to check for messages every 200ms
# setup timer to check for messages every 500ms
tim = machine.Timer(-1)
tim.init(period = 200, mode = machine.Timer.PERIODIC,
tim.init(period = 500, mode = machine.Timer.PERIODIC,
callback = lambda t:client.check_msg())
mqtt_con_status='Success'

Expand Down

0 comments on commit 1b88013

Please sign in to comment.