From this:
Code: Select all
for i in (network.AP_IF, network.STA_IF):
wlan = network.WLAN(i)
if wlan.active():
print("Telnet server started on {}:{}".format(wlan.ifconfig()[0], port))
Code: Select all
eth = network.LAN()
eth.active(True)
eth.ifconfig('dhcp')
if eth.active():
print("Telnet server started on {}:{}".format(eth.ifconfig()[0], port))