mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[PR #365] [MERGED] Allow showing static IP config without predefined value #1610
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#1610
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/tzapu/WiFiManager/pull/365
Author: @vyruz1986
Created: 5/4/2017
Status: ✅ Merged
Merged: 9/8/2017
Merged by: @tablatronix
Base:
development← Head:master📝 Commits (3)
486ea7dAllow showing static IP config without predefined value136c0c9Also show static IP fields when static IP is passed0fc051aMerge remote-tracking branch 'refs/remotes/tzapu/master'📊 Changes
2 files changed (+13 additions, -10 deletions)
View changed files
📝
WiFiManager.cpp(+9 -7)📝
WiFiManager.h(+4 -3)📄 Description
Previously a valid predefined static IP had to be passed before the
config page would show the IP, gateway and subnet fields. This did not
allow the config page to show 'optional' static IP fields.
Now a boolean can be passed to the autoConnect() function which will
specify whether the static IP fields should be shown or not.
When this boolean is true but no predefined values are passed and fields
are left blank in config page, wifiManager will revert to DHCP. This
allows user to choose between static IP or DHCP without changing code
For backwards compatibility we will show the static IP fields regardless of how the boolean is set.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.