Skip to content

Commit 092ff9b

Browse files
author
James Boulton
committed
add some comments to the dashio_data_exporter
1 parent c7241a9 commit 092ff9b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

utilities/dashio_data_exporter

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,12 @@ def main():
186186

187187
from_timestamp = timestamp.isoformat()
188188

189+
# Setup callbacks
189190
mqtt_client.on_connect = on_connect
190191
mqtt_client.on_message = on_message
191192
mqtt_client.on_subscribe = on_subscribe
193+
194+
# Setup connection
192195
mqtt_client.tls_set(
193196
ca_certs=None,
194197
certfile=None,
@@ -210,6 +213,7 @@ def main():
210213
exit(0)
211214

212215
mqtt_client.subscribe(data_topic, 0)
216+
213217
mqtt_client.loop_start()
214218

215219
while times_up >= 0:

0 commit comments

Comments
 (0)