-->
Page 1 of 3

How to troubleshoot wifi connection to router?

PostPosted: Mon Jun 08, 2015 4:12 pm
by kriegste
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.

Re: How to troubleshoot wifi connection to router?

PostPosted: Tue Jun 09, 2015 10:23 am
by jairos2015
Good . ESP8266 leave on a moment (about one hour) and enter the router configuration page ESP8266 saw the one assigned at running only instructions nodejs connection to the server and it worked. Now he will have to work using a delay for assigning IP by the router.

Re: How to troubleshoot wifi connection to router?

PostPosted: Wed Jun 10, 2015 5:00 am
by kriegste
Like I said. After several minutes status becomes 4, which is STATION_CONNECT_FAIL. After that nothing happens.

Re: How to troubleshoot wifi connection to router?

PostPosted: Wed Jun 10, 2015 1:40 pm
by cal
Moin,

make sure your password is long enough. I think I read about problems with short passwords.

Cal