Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
TedSjoblom committed Dec 7, 2022
1 parent 42b0b9e commit 9da78f6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
if MQTT_TLS:
mq.tls_set()
mq.enable_logger(LOGGER)
LOGGER.info("Connecting to MQTT broker...")
mq.connect(MQTT_BROKER_HOST, MQTT_BROKER_PORT)


Expand Down Expand Up @@ -176,8 +177,5 @@ def rotate_points_azimuth(input_stream):
pipe_heading = source_heading.latest()
pipe_rotate = source.zip(pipe_heading).map(rotate_points_azimuth).map(to_brefv_raw).sink(to_mqtt)

LOGGER.info("Connecting to MQTT broker...")
mq.connect(MQTT_BROKER_HOST, MQTT_BROKER_PORT)

LOGGER.info("Setting up MQTT listener...")
subscribe_to_mqtt()

0 comments on commit 9da78f6

Please sign in to comment.