本站改版新增arduino频道
def gateway():
import network
gateway = None
station = network.WLAN(network.STA_IF)
if station.status() == network.STAT_GOT_IP:
gateway = station.ifconfig()[2]
return gateway
print("IP:"+gateway())
Copyright © 2014 ESP56.com All Rights Reserved
晋ICP备14006235号-22 晋公网安备14108102001165号
执行时间: 0.0095570087432861 seconds