wifiCfg.autoConnect(lcdShow=True)
wifiCfg.doConnect(ssid, pwd)
wifiCfg.connect(ssid, pwd, timeout, block=False)
wifiCfg.reconnect()
wifiCfg.wlan_sta.isconnected()
wifiCfg.wlan_sta.ifconfig()
import wifiCfg
import time
print("start connect")
wifiCfg.doConnect('ssid', 'password')
while True:
if not (wifiCfg.wlan_sta.isconnected()):
print("try reconnect")
wifiCfg.reconnect()
print("get ifconfig")
print(wifiCfg.wlan_sta.ifconfig())
#('192.168.1.xx', '255.255.255.0', '192.168.1.1', '192.168.1.1')
wait(5)