[PR #118] give option for static OR dynamic #1580

Open
opened 2026-02-28 01:30:44 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/tzapu/WiFiManager/pull/118
Author: @richardwilliamson
Created: 3/6/2016
Status: 🔄 Open

Base: masterHead: static-ip-dhcp-optional


📝 Commits (1)

  • 6a5b2be give option for static OR dynamic

📊 Changes

2 files changed (+41 additions, -5 deletions)

View changed files

📝 WiFiManager.cpp (+31 -5)
📝 WiFiManager.h (+10 -0)

📄 Description

adds an option to set enableForceStaticIP which when true will always
present the static IP fields - if no static IP is sent these will be
blank. If the user doesn’t fill these in then dhcp will be used. Also
added “getSTAIsStaticIP()” - call this after the save is completed and
query whether the user has set a static IP. This way the sketch can
then save the static IP to EEPROM if required.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/tzapu/WiFiManager/pull/118 **Author:** [@richardwilliamson](https://github.com/richardwilliamson) **Created:** 3/6/2016 **Status:** 🔄 Open **Base:** `master` ← **Head:** `static-ip-dhcp-optional` --- ### 📝 Commits (1) - [`6a5b2be`](https://github.com/tzapu/WiFiManager/commit/6a5b2beccade984da541158965912d133d69f9f7) give option for static OR dynamic ### 📊 Changes **2 files changed** (+41 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `WiFiManager.cpp` (+31 -5) 📝 `WiFiManager.h` (+10 -0) </details> ### 📄 Description adds an option to set enableForceStaticIP which when true will always present the static IP fields - if no static IP is sent these will be blank. If the user doesn’t fill these in then dhcp will be used. Also added “getSTAIsStaticIP()” - call this after the save is completed and query whether the user has set a static IP. This way the sketch can then save the static IP to EEPROM if required. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#1580
No description provided.