From 3328be10b94094a674765cd48b859117ce08ef9e Mon Sep 17 00:00:00 2001 From: caleb Date: Fri, 27 Oct 2023 17:39:31 +0100 Subject: [PATCH] fix reconnect counter --- relay.py | 1 + 1 file changed, 1 insertion(+) diff --git a/relay.py b/relay.py index 2548199..d3d3851 100644 --- a/relay.py +++ b/relay.py @@ -109,6 +109,7 @@ def main(): time.sleep(5) #print("CONNECTED:",CONNECTED) publish_status(client) + reset_count=reset_count+1 if CONNECTED==0: print("RELAY: Attempting reconnect") sys.stdout.flush()