preceding the questions - https://docs.micropython.org/en/latest/ ... networking
I wanted to ask whether my code was wrong and if I was doing something wrong
The ESP8266 "wasn't" connecting to my home networks.
It turns out I missed one of my own "debug" prints, print(nic.connect(SSID, PASSWD))
The function actually returns "None"
Perhaps it could be a good idea to let it return a control value (true, false, 1, 0)
in my case, the code
Code: Select all
if nic.connect(SSID, PASSWD):
print("Connected to", SSID)
I know, there is the isConnected() method
PS: The project is absolutely awesome and Micropython is something I found out about just recently.
100% happy with the discovery. The programming is ultra fast and simple.