Skip to content

Commit

Permalink
Increase number of retry attempts for catching a WiFi connection,
Browse files Browse the repository at this point in the history
essentially checking for 15 seconds
  • Loading branch information
amotl committed Mar 14, 2019
1 parent 451e131 commit b8c454b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terkin/radio.py
Expand Up @@ -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))
time.sleep(1)
Expand Down

0 comments on commit b8c454b

Please sign in to comment.