mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1051] Refactor: static ip flags #897
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#897
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?
Originally created by @dontsovcmc on GitHub (May 11, 2020).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1051
Sorry if I don't understand all use cases, but doubling static ip flags '_disableIpFields' '_staShowStaticFields' looks terrible.
There are only 2 cases:
I can refactor it, if needed.
P.S. It will be interesting to research statistic of using WifiManager methods.. I think there are only few popular cases. Others are brake the development.
P.P.S. optionalIPFromString also is outdated.
@tablatronix commented on GitHub (May 11, 2020):
It is so you can force showing the fields if you are setting them in code or from elsewhere.
Maybe you can be more specific with what the problem is?
Do you mean confusing?
_disableIpFields is special case, it is not exposed with a setter for that reason
Do you have an idea how to clean it up ?
@tablatronix commented on GitHub (May 11, 2020):
P.P.S. optionalIPFromString also is outdated. ?
@dontsovcmc commented on GitHub (May 11, 2020):
isIp()
toStringIp()
@dontsovcmc commented on GitHub (May 14, 2020):
@tablatronix offtopic: Why getWiFiSSID()= WiFi_SSID() & getWiFiPass()=WiFi_psk() functions were added? There are the same...
@tablatronix commented on GitHub (May 14, 2020):
They are public helpers, have better names, atm they are just aliases, but if we needed to have different logic for internal wrappers and public ones, we can change them. This is for future abstractions. It also gives us public methods to add docblocks to for auto documentation