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()