Archived
1
0

Added sleep during MQTT connection failures to prevent a bug where reconnection attempts overwhelm the broker.

This commit is contained in:
Shaun Setlock
2022-11-24 21:44:26 -05:00
parent 9af0aff246
commit 17caf17463

View File

@@ -158,6 +158,7 @@ def main():
if DEBUG:
print("Trouble to connecting to MQTT: {}".format(e))
led_error_code(led, 2)
time.sleep(5)
continue # Start back at the top of the While Loop
# DHT22 Reading.