-
Notifications
You must be signed in to change notification settings - Fork 126
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
Static IP in ElegantOTA AsyncDemo #238
Comments
FYI I am using ElegantOTA in an app and using static IP on ETH and WiFi. |
Hi Mathieu, it's good to know, that it works, but do you have any idea or hint what I'm doing wrong? |
I do exactly like you so this might be something else... |
So you were right Mathieu. |
ElegantOTA works pretty well with DHCP. But I have to set a static IP in my wlan net due to several reasons.
So I inserted :
// config for static ip
WiFi.config(myip,gateway,subnet,dns1,dns2);
after :
WiFi.mode(WIFI_STA)
and before :
WiFi.begin(ssid, password)
like usually.
But with ElegantOTA it does not work. I can reach the ESP with http://ip and get the info :
"Hi! This is ElegantOTA AsyncDemo."
But not with http://ip/update. And after trying this, http://ip does not work anymore too.
How can I set static IP? With ESP8266HTTPUpdateServer I got it working with static IP
Thanks!
The text was updated successfully, but these errors were encountered: