8266 does not receive an IP address

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
mscory
New user
Posts: 3
Joined: 29 Nov 2016, 13:31

8266 does not receive an IP address

#1 Post by mscory » 15 May 2020, 10:42

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

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: 8266 does not receive an IP address

#2 Post by grovkillen » 15 May 2020, 11:24

Upload latest from GitHub. It's not buggy at all.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

mscory
New user
Posts: 3
Joined: 29 Nov 2016, 13:31

Re: 8266 does not receive an IP address

#3 Post by mscory » 15 May 2020, 16:19

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.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: 8266 does not receive an IP address

#4 Post by grovkillen » 15 May 2020, 17:03

It's obsolete, but officially it's still the "stable". It will soon change.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

TD-er
Core team member
Posts: 8739
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: 8266 does not receive an IP address

#5 Post by TD-er » 16 May 2020, 00:31

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)

Post Reply

Who is online

Users browsing this forum: No registered users and 74 guests