src/eric7/MicroPython/Devices/MCUScripts/esp32WiFiConnect.py

branch
mpy_network
changeset 9828
32c8a5b57332
parent 9795
11b4d39d7584
child 9890
66a6d3f131cc
equal deleted inserted replaced
9827:21803aa6c3e2 9828:32c8a5b57332
20 while max_wait and wifi.status() == network.STAT_CONNECTING: 20 while max_wait and wifi.status() == network.STAT_CONNECTING:
21 max_wait -= 1 21 max_wait -= 1
22 sleep(0.1) 22 sleep(0.1)
23 print("Connection status:", wifi.isconnected()) 23 print("Connection status:", wifi.isconnected())
24 except: 24 except:
25 pass 25 print("WiFi secrets are kept in NVM. Please store them there!")
26 26
27 connectWiFi() 27 connectWiFi()

eric ide

mercurial