From 8c2c3b1acf45d1dadda1cef42630b89827c050d9 Mon Sep 17 00:00:00 2001 From: Tayfun ULU Date: Sat, 31 Dec 2022 12:10:22 +0300 Subject: [PATCH] closing AP after connection disable AP mode after connection --- wifimgr.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wifimgr.py b/wifimgr.py index c1d6510..5f6a58b 100644 --- a/wifimgr.py +++ b/wifimgr.py @@ -94,6 +94,7 @@ def do_connect(ssid, password): print('.', end='') if connected: print('\nConnected. Network config: ', wlan_sta.ifconfig()) + wlan_ap.active(False) else: print('\nFailed. Not Connected to: ' + ssid) return connected @@ -275,6 +276,7 @@ def start(port=80): while True: if wlan_sta.isconnected(): + wlan_ap.active(False) return True client, addr = server_socket.accept()