Skip to content

ESP32S2: Static IP and DHCP stop fixes #4103

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

Merged
merged 1 commit into from
Jun 22, 2020
Merged

ESP32S2: Static IP and DHCP stop fixes #4103

merged 1 commit into from
Jun 22, 2020

Conversation

atanisoft
Copy link
Collaborator

Fixing static IP configuration so it doesn't get overwritten by DHCP as part of WiFi.begin().

Fixing DHCP client stop if WiFi.config() is called before WiFi.begin() (as done in WiFiClientStaticIP.ino)

…as part of WiFi.begin().

Fixing DHCP client stop if WiFi.config() is called before WiFi.begin() (as done in WiFiClientStaticIP.ino)
@hasenradball
Copy link

What were happend if I had first called ‚WiFi.begin()‘ and then WiFi.config()?

@atanisoft
Copy link
Collaborator Author

What were happend if I had first called ‚WiFi.begin()‘ and then WiFi.config()?

You will have a DHCP address once connected to the AP and after calling WiFi.config() it should have your static IP.

@me-no-dev me-no-dev merged commit 11cad87 into espressif:esp32s2 Jun 22, 2020
me-no-dev pushed a commit that referenced this pull request Nov 3, 2020
…as part of WiFi.begin(). (#4103)

Fixing DHCP client stop if WiFi.config() is called before WiFi.begin() (as done in WiFiClientStaticIP.ino)
me-no-dev pushed a commit that referenced this pull request Mar 31, 2021
…as part of WiFi.begin(). (#4103)

Fixing DHCP client stop if WiFi.config() is called before WiFi.begin() (as done in WiFiClientStaticIP.ino)
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

Successfully merging this pull request may close these issues.

3 participants