Page 1 of 1

8266 does not receive an IP address

Posted: 15 May 2020, 10:42
by mscory
Hello,
After flashing several devices based on 8266 (3 DI mini pro, NodeMCU Lolin and Amica), I connected them successfully to ESP_0. My local networks appeared: fine, but next step failed: they didn't receive an IP address !
For a couple of days I tried with several devices, versions R120, R78, R147. I put the devices close to my router, tried to connect to a smart phone, changed some network parameters (WPAx), flashed and reflashed everything, reset the whole memory with "blank", ...

When I got the devices three or four years ago, I remember they worked at least once. I didn't use them until now. In the meantime I changed my router. Would it be a network parameter not supported by the 8266 ?

Perhaps a newer version (2.1 mega) would fix the problem ? Still too buggy ? Anyway, I don't know how to compile/install/flash version 2.x.

I use Windows.

Could you, please, give me some advices ?

Thank you

Re: 8266 does not receive an IP address

Posted: 15 May 2020, 11:24
by grovkillen
Upload latest from GitHub. It's not buggy at all.

Re: 8266 does not receive an IP address

Posted: 15 May 2020, 16:19
by mscory
I wrote a piece of code, just to try to connect to my local network ... and it works !!!
So: I suspect that the ".bin" provided (R120) uses old libraries and should be rebuilt.

Re: 8266 does not receive an IP address

Posted: 15 May 2020, 17:03
by grovkillen
It's obsolete, but officially it's still the "stable". It will soon change.

Re: 8266 does not receive an IP address

Posted: 16 May 2020, 00:31
by TD-er
If you have run an old sketch once, then it is best to wipe the flash completely.
Now that you have run your test sketch, a new flashed ESPEasy will probably work just fine... until you switch access points.

The reason is that the default examples do not tell you to set the wifi persistent mode off, as also old builds of ESPEasy (and others like Tasmota) did not do.
So there is somewhere in the flash still the last credentials stored and tried to use before ESPEasy even boots.

Those are only cleared when doing a complete wipe of the flash (writing the blank files to it)