Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
peakMeissner authored Jan 26, 2018
1 parent 0cc2274 commit f63e8d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

mqttc = MQTTClient().connect() # initialize the MQTT client
'''
# uncomment this section if needed an modify :)
@cbpi.backgroundtask(key='mqtt_client', interval=2.5) # create bg job with an interval of 2.5 seconds
def mqtt_client_background_task(api):
sensors = cbpi.cache.get('sensors') # read available sensors
Expand Down

0 comments on commit f63e8d7

Please sign in to comment.