-
Notifications
You must be signed in to change notification settings - Fork 2k
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
ESP8266 static IP changes on reset. #719
Comments
erase flash ? |
tried with option Erase Flash:All Flash Content. |
Updated WiFi Manager to latest dev branch.... no success With Software reset using ESP.restart():
With Hardware reset:
|
This is what I get, looks ok to me. |
have u tried two methods? |
I used the same sketch and added a start delay and a reset |
ESP stores mode on its own, and that is the default. You should set whatever mode you want in your sketch , WM will not do this for you, or change it. I am thinking that this is somehow starting differently and WM is not able to correct it, Do you have logging with esp wifi debugging on ? Try setting mode sta before wm also |
wm disables persistent when switching modes, leaving the default saved mode unaffected |
make sure you have the latest commits |
----------------------------- Remove above -----------------------------
Basic Infos
Hardware
WiFimanager Branch/Release:
Esp8266/Esp32:
Hardware: ESP-12e, esp01, esp25
ESP Core Version: 2.4.0, staging
Description
Problem description
Settings in IDE
Module: Generic
Additional libraries:
Sketch
I'm trying very simple setup with ESP-12E here. What I observe is that if I restart ESP by using reset pin, it gets random dynamic IP. But if I use software reset via programming or URL it get its static IP. Also mostly after power on it gets its static IP Properly. But I consistently observed that if I use hardware reset pin it gets IP by DHCP as it switches back to my normal IP assigned by WiFi router.
pardon me if i'm creating duplicate issue, but i searched for similar problem but could not find a trace of it in issues.
So what is going on wrong or am i missing something.
Edit:
Just tested and verified again with NodeMCU.
Find below the debug logs first is after after ESP.restart()
And second one is Hardware reset.
The text was updated successfully, but these errors were encountered: