Skip to content

Commit 5cd80b3

Browse files
authored
Update boot.py
AP mode was still active after the network was connected. added ap = network.WLAN(network.AP_IF) ap.active(False) # turn off AP SSID after the network is connected.
1 parent a12a923 commit 5cd80b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

boot.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ def captive_portal(essid_name):
6969
if con is True:
7070
existing_config = True
7171
print("Network connected")
72+
ap = network.WLAN(network.AP_IF)
73+
ap.active(False) # turn off AP SSID
7274
else:
7375
existing_config = False
7476
print("Incorrect network configuration")
@@ -144,4 +146,4 @@ def main():
144146
captive_portal("WeatherApp")
145147

146148

147-
main()
149+
main()

0 commit comments

Comments
 (0)