Skip to content
Browse files

Increase number of retry attempts for catching a WiFi connection,

essentially checking for 15 seconds
  • Loading branch information...
amotl committed Mar 14, 2019
1 parent 451e131 commit b8c454bc4cff4db1919bfb2cbc3b96c1bcb9d2c1
Showing with 1 addition and 1 deletion.
  1. +1 −1 terkin/
@@ -105,7 +105,7 @@ def wifi_connect_station(self, network):

# FIXME: If no known network is found, the program will lockup here.
# ``isconnected()`` returns True when connected to a WiFi access point and having a valid IP address.
retries = 5
retries = 15
while not self.station.isconnected() and retries > 0:
print('WiFi STA: Waiting for network "{}".'.format(network_name))

0 comments on commit b8c454b

Please sign in to comment.
You can’t perform that action at this time.