[GH-ISSUE #823] Hide Static IP Station Fields #690

Closed
opened 2026-02-28 01:26:35 +03:00 by kerem · 3 comments
Owner

Originally created by @SomeGuyNamedJay on GitHub (Feb 9, 2019).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/823

Basic Infos

Hardware

WiFimanager Branch/Release:

  • Master
  • Development

Esp8266/Esp32:

  • ESP8266
  • ESP32

Hardware: ESP-12e, esp01, esp25

  • ESP01
  • ESP12 E/F/S (nodemcu, wemos, feather)
  • Other

ESP Core Version: 2.4.0, staging

  • 2.3.0
  • 2.4.0
  • staging (master/dev)
  • Not sure

Description

How do I get the Static IP address fields to hide on the Configure WiFi page? Specifically, the "(IP unset)" fields in this screenshot:

https://www.dropbox.com/s/9nrfkhrob9vp4o7/Screen%20Shot%202019-02-08%20at%209.07.37%20PM.png?dl=0

Settings in IDE

Module: NodeMcu

Additional libraries:

Sketch


#include <Arduino.h>

void setup() {
  wifiManager.setCustomHeadElement("<div>Welcome to Wifi Setup</div>");

  String chipString = "nodemcu-" + chipId;
  const char* chipChar = chipString.c_str();
  //WiFiManagerParameter custom_text(chipChar);
  //wifiManager.addParameter(&custom_text);
    
  apName = "makeSmart";//-" + chipId; //mac_addr;
  apName.toCharArray(apNameCharBuf, 100);

  display.print("Connect your wifi to:\n" + String(apNameCharBuf));
  display.display();

  wifiManager.setAPStaticIPConfig(IPAddress(10, 10, 10, 10), IPAddress(), IPAddress(255, 255, 255, 0));
  //wifiManager.setSTAStaticIPConfig(IPAddress(10,10,10,10), IPAddress(), IPAddress(255,255,255,0));

  wifiManager.autoConnect(apNameCharBuf, apPassword);
}

Originally created by @SomeGuyNamedJay on GitHub (Feb 9, 2019). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/823 ### Basic Infos #### Hardware **WiFimanager Branch/Release:** - [x] Master - [ ] Development **Esp8266/Esp32:** - [x] ESP8266 - [ ] ESP32 **Hardware: ESP-12e, esp01, esp25** - [ ] ESP01 - [x] ESP12 E/F/S (nodemcu, wemos, feather) - [ ] Other **ESP Core Version: 2.4.0, staging** - [ ] 2.3.0 - [ ] 2.4.0 - [ ] staging (master/dev) - Not sure ### Description How do I get the Static IP address fields to hide on the Configure WiFi page? Specifically, the "(IP unset)" fields in this screenshot: https://www.dropbox.com/s/9nrfkhrob9vp4o7/Screen%20Shot%202019-02-08%20at%209.07.37%20PM.png?dl=0 ### Settings in IDE Module: NodeMcu Additional libraries: ### Sketch ```cpp #include <Arduino.h> void setup() { wifiManager.setCustomHeadElement("<div>Welcome to Wifi Setup</div>"); String chipString = "nodemcu-" + chipId; const char* chipChar = chipString.c_str(); //WiFiManagerParameter custom_text(chipChar); //wifiManager.addParameter(&custom_text); apName = "makeSmart";//-" + chipId; //mac_addr; apName.toCharArray(apNameCharBuf, 100); display.print("Connect your wifi to:\n" + String(apNameCharBuf)); display.display(); wifiManager.setAPStaticIPConfig(IPAddress(10, 10, 10, 10), IPAddress(), IPAddress(255, 255, 255, 0)); //wifiManager.setSTAStaticIPConfig(IPAddress(10,10,10,10), IPAddress(), IPAddress(255,255,255,0)); wifiManager.autoConnect(apNameCharBuf, apPassword); }
kerem closed this issue 2026-02-28 01:26:35 +03:00
Author
Owner

@SomeGuyNamedJay commented on GitHub (Feb 9, 2019):

Looks like I am using Hardware: 2.5.0-beta2

<!-- gh-comment-id:462004142 --> @SomeGuyNamedJay commented on GitHub (Feb 9, 2019): Looks like I am using Hardware: 2.5.0-beta2
Author
Owner

@tablatronix commented on GitHub (Feb 9, 2019):

Update your esp lib, this was fixed upstream

<!-- gh-comment-id:462010284 --> @tablatronix commented on GitHub (Feb 9, 2019): Update your esp lib, this was fixed upstream
Author
Owner

@SomeGuyNamedJay commented on GitHub (Feb 9, 2019):

Wow, that was easy. Thanks for your help! Great project!!!

<!-- gh-comment-id:462045990 --> @SomeGuyNamedJay commented on GitHub (Feb 9, 2019): Wow, that was easy. Thanks for your help! Great project!!!
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#690
No description provided.