[GH-ISSUE #1423] Static IP change after first restart to DHCP #1218

Closed
opened 2026-02-28 01:29:04 +03:00 by kerem · 2 comments
Owner

Originally created by @Mehdi-Dehghan on GitHub (May 24, 2022).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1423

WiFimanager Branch/Release: Master 2.0.11-beta
Esp8266
Hardware: ESP-12e

Description

Hi
I used "wifiManager.setShowStaticFields(true);" to show static fields. after first config the module connect with static ip but after first restart, module use DHCP.
could you please help me how can i coupe with this issue.
thanks

Settings in IDE

Module: NodeMcu

Originally created by @Mehdi-Dehghan on GitHub (May 24, 2022). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1423 WiFimanager Branch/Release: Master 2.0.11-beta Esp8266 Hardware: ESP-12e ### Description Hi I used "wifiManager.setShowStaticFields(true);" to show static fields. after first config the module connect with static ip but after first restart, module use DHCP. could you please help me how can i coupe with this issue. thanks ### Settings in IDE Module: NodeMcu
kerem closed this issue 2026-02-28 01:29:05 +03:00
Author
Owner

@Mehdi-Dehghan commented on GitHub (May 30, 2022):

I tried to use setSaveParamsCallback() and also save the data to memory with using littlefs. That has been working true.

<!-- gh-comment-id:1140698822 --> @Mehdi-Dehghan commented on GitHub (May 30, 2022): I tried to use setSaveParamsCallback() and also save the data to memory with using littlefs. That has been working true.
Author
Owner

@tablatronix commented on GitHub (May 31, 2022):

Yeah you will have to save and set it back everytime esp lib does not have a persistent flash for ip afaik

<!-- gh-comment-id:1141631347 --> @tablatronix commented on GitHub (May 31, 2022): Yeah you will have to save and set it back everytime esp lib does not have a persistent flash for ip afaik
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#1218
No description provided.