mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-04 02:48:13 +10:00
add staticfield setter
This commit is contained in:
@@ -1012,6 +1012,11 @@ void WiFiManager::setRestorePersistent(boolean persistent) {
|
||||
if(!persistent) DEBUG_WM(F("persistent is off"));
|
||||
}
|
||||
|
||||
void WiFiManager::setShowStaticFields(boolean alwaysShow){
|
||||
_sta_show_static_fields = alwaysShow;
|
||||
}
|
||||
|
||||
|
||||
// HELPERS
|
||||
|
||||
template <typename Generic>
|
||||
|
||||
@@ -145,6 +145,8 @@ class WiFiManager
|
||||
void setRemoveDuplicateAPs(boolean removeDuplicates);
|
||||
//setter for ESP wifi.persistent so we can remember it and restore user preference, as WIFi._persistent is protected
|
||||
void setRestorePersistent(boolean persistent);
|
||||
//if true, always show static net inputs, IP, subnet, gateway, if false, only show when already set.
|
||||
void setShowStaticFields(boolean alwaysShow);
|
||||
|
||||
private:
|
||||
std::unique_ptr<DNSServer> dnsServer;
|
||||
|
||||
Reference in New Issue
Block a user