File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ A small async server example::
5555 import asyncio
5656
5757 # A WLAN interface must be active to send()/recv()
58- network.WLAN(network.STA_IF ).active(True )
58+ network.WLAN(network.WLAN . IF_STA ).active(True )
5959
6060 e = aioespnow.AIOESPNow() # Returns AIOESPNow enhanced with async support
6161 e.active(True )
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ def setup_conn(port, accept_handler):
102102 listen_s .listen (1 )
103103 if accept_handler :
104104 listen_s .setsockopt (socket .SOL_SOCKET , 20 , accept_handler )
105- for i in (network .AP_IF , network .STA_IF ):
105+ for i in (network .WLAN . IF_AP , network .WLAN . IF_STA ):
106106 iface = network .WLAN (i )
107107 if iface .active ():
108108 print ("WebREPL server started on http://%s:%d/" % (iface .ifconfig ()[0 ], port ))
You can’t perform that action at this time.
0 commit comments