Skip to content

Commit 9da78f6

Browse files
committed
Update main.py
1 parent 42b0b9e commit 9da78f6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

main.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
if MQTT_TLS:
4747
mq.tls_set()
4848
mq.enable_logger(LOGGER)
49+
LOGGER.info("Connecting to MQTT broker...")
4950
mq.connect(MQTT_BROKER_HOST, MQTT_BROKER_PORT)
5051

5152

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

179-
LOGGER.info("Connecting to MQTT broker...")
180-
mq.connect(MQTT_BROKER_HOST, MQTT_BROKER_PORT)
181-
182180
LOGGER.info("Setting up MQTT listener...")
183181
subscribe_to_mqtt()

0 commit comments

Comments
 (0)