Skip to content

Can't get back into DHCP mode, from static IP,MASK, GATEWAY,DNS #654

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
euquiq opened this issue Sep 21, 2017 · 2 comments
Closed

Can't get back into DHCP mode, from static IP,MASK, GATEWAY,DNS #654

euquiq opened this issue Sep 21, 2017 · 2 comments

Comments

@euquiq
Copy link

euquiq commented Sep 21, 2017

Hi There !

On the ESP8266, if I was using static IP,GATEWAY, MASK and DNS addresses but wanted to go back into using DHCP, I issued the following line of code:

WiFi.config({ 0,0,0,0 }, { 0,0,0,0 }, { 0,0,0,0 });

... and thus, the ESP8266 was forced to get those values from DHCP.

Now, on ESP32, whenever that line of code is executed, I get the following error into my serial port:

E (2807) event: invalid static ip

... And the esp32 fails to get a Wifi Connection.

Probably there is a better way to accomplish "back to DHCP" on the ESP32, but just in case I wanted to place it as an issue.

Regards,

Enrique

@me-no-dev
Copy link
Member

Done :) can you please give this a go?

@euquiq
Copy link
Author

euquiq commented Sep 22, 2017

Thanks, me-no-dev, now it works perfectly ok!

dash0820 added a commit to dash0820/arduino-esp32-stripped that referenced this issue Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants