rename check_connection -> get_connection

pull/3/head
Thomas Waldmann 2017-12-12 02:05:11 +01:00
rodzic 3ae68033e6
commit b68f6560b9
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -1,7 +1,7 @@
import networkconfig
wlan = networkconfig.check_connection()
wlan = networkconfig.get_connection()
if wlan is None:
print("Could not initialize the network connection.")
while True:

Wyświetl plik

@ -16,7 +16,8 @@ wlan_sta = network.WLAN(network.STA_IF)
server_socket = None
def check_connection():
def get_connection():
"""return a working WLAN(STA_IF) instance or None"""
global wlan_sta
# First check if there already is any connection: