Skip to content

Commit 9cf7b51

Browse files
author
brentru
committed
remove debug counter..
1 parent 9657b72 commit 9cf7b51

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

examples/minimqtt_pub_sub_blocking.py

-4
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,12 @@ def message(client, topic, message):
9797
# Start a blocking message loop...
9898
# NOTE: NO code below this loop will execute
9999
# NOTE: Network reconnection is handled within this loop
100-
101-
counter = 0
102100
while True:
103-
print("Iteration #", counter)
104101
try:
105102
mqtt_client.loop()
106103
except (ValueError, RuntimeError) as e:
107104
print("Failed to get data, retrying\n", e)
108105
wifi.reset()
109106
mqtt_client.reconnect()
110107
continue
111-
counter += 1
112108
time.sleep(1)

0 commit comments

Comments
 (0)