File tree 2 files changed +2
-2
lines changed
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::
55
55
import asyncio
56
56
57
57
# 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 )
59
59
60
60
e = aioespnow.AIOESPNow() # Returns AIOESPNow enhanced with async support
61
61
e.active(True )
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ def setup_conn(port, accept_handler):
102
102
listen_s .listen (1 )
103
103
if accept_handler :
104
104
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 ):
106
106
iface = network .WLAN (i )
107
107
if iface .active ():
108
108
print ("WebREPL server started on http://%s:%d/" % (iface .ifconfig ()[0 ], port ))
You can’t perform that action at this time.
0 commit comments