How to troubleshoot wifi connection to router?
Posted: Mon Jun 08, 2015 4:12 pm
I compiled Nodemcu myself and now i'm trying these commands to connect to my router:
wifi.setmode(wifi.STATION)
wifi.sta.config("myssid","mypassword")
(ssid and password are entered correctly, I checked this multiple times!)
wifi.sta.connect()
The problem is, I do not get a connection.
print(wifi.sta.getip())
(this gives "nil", even after several minutes)
print(wifi.sta.status())
(this first returns 1, and after a few minutes, 4)
I had luck connecting with the standard AT firmware a few days ago, but I am forced to compile Nodemcu myself since I need 115200 baud.
wifi.setmode(wifi.STATION)
wifi.sta.config("myssid","mypassword")
(ssid and password are entered correctly, I checked this multiple times!)
wifi.sta.connect()
The problem is, I do not get a connection.
print(wifi.sta.getip())
(this gives "nil", even after several minutes)
print(wifi.sta.status())
(this first returns 1, and after a few minutes, 4)
I had luck connecting with the standard AT firmware a few days ago, but I am forced to compile Nodemcu myself since I need 115200 baud.