Skip to content

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

Closed
@euquiq

Description

@euquiq

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions