[GH-ISSUE #717] Feature proposal: being able to iterate on WifiManagerParameters #599

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

Originally created by @fllaca on GitHub (Sep 2, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/717

I think iterating on WifiManagerParameters could be interesting, in order to make easier the creation of reusable configuration forms, so you could do something like:

JsonObject& json = ...
....
for (int i=0; i<wifimanager.getParametersCount(); i++){
    WiFiManagerParameter parameter = wifimanager.getParameters()[i];
    json[parameter.getId()] = parameter.getValue();
}

// then save the jsonfile into a file
persistJsontoFS(json);

WDYT?

Originally created by @fllaca on GitHub (Sep 2, 2018). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/717 I think iterating on WifiManagerParameters could be interesting, in order to make easier the creation of reusable configuration forms, so you could do something like: ```C++ JsonObject& json = ... .... for (int i=0; i<wifimanager.getParametersCount(); i++){ WiFiManagerParameter parameter = wifimanager.getParameters()[i]; json[parameter.getId()] = parameter.getValue(); } // then save the jsonfile into a file persistJsontoFS(json); ``` WDYT?
kerem 2026-02-28 01:26:09 +03:00
Author
Owner

@tablatronix commented on GitHub (Sep 2, 2018):

Hmm makes sense

<!-- gh-comment-id:417964966 --> @tablatronix commented on GitHub (Sep 2, 2018): Hmm makes sense
Author
Owner

@JeremyProffitt commented on GitHub (Sep 9, 2018):

I worry about json parsing and device memory, was looking at one file per perameter model myself. Name the file o/paramname

<!-- gh-comment-id:419724256 --> @JeremyProffitt commented on GitHub (Sep 9, 2018): I worry about json parsing and device memory, was looking at one file per perameter model myself. Name the file o/paramname
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#599
No description provided.