mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #1464] Dynamically setting the value of a WiFiManagerParameter #1254
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#1254
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 @paopre on GitHub (Aug 1, 2022).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1464
Hello,
not an Issue but a question or (maybe) a request of enhancement.
Given:
I can dinamycally update it in the loop() function with:
together with a javascript code like:
However, this doesn't work if the parameter is not an tag. For example:
So: is there a way to dynamically set the value in this case too? It would be very useful for logging on the web page, instead of using the Serial.print() output.
Otherwise, is there an alternative for obtaining the same result?
Thanks!
P
@tablatronix commented on GitHub (Aug 1, 2022):
Yeah there is a issue here somewhere to generate or allow ids for all params, let me find where I left it off.
have you tried setcustomhtml ? I think thats a thing
@tablatronix commented on GitHub (Aug 1, 2022):
i lied, nm
it is also a char pointer, so string size can be an issue unless you allocate a large enough char reference and use memory safe copys.. hmm
@paopre commented on GitHub (Aug 1, 2022):
Yeah, I just created a logger page with setCustomMenuHTML(), and it works perfectly. I think you can close the issue.
I also think that it would be useful to add to the documentation/examples how to log on the web pages, because logging on serial can be a limitation for many reasons.
Here is a working example for doing that, made with a simple circular buffer. It's a modification of the AutoConnectNonBlocking.ino example. It can be useful for people who, like me, were searching for a quick way to implement this feature:
@tablatronix commented on GitHub (Aug 2, 2022):
Ah ok yeah no need to use params good idea, I use netlog for most of my esp devices and log to a server syslog, this might make a cool example
@paopre commented on GitHub (Aug 2, 2022):
After testing It, I suggest You to consider to add It as a replacement of AutoConnectNonBlocking.ino. You can see that only few Lines of AutoConnectNonBlocking.ino are modified and It provides means for web logging without using external tools.