This repository was archived by the owner on Feb 4, 2023. It is now read-only.
Pass parameters in the web server #96
MattiaCC93
started this conversation in
Ideas
Replies: 2 comments
-
Sorry I have no time here now, you have to investigate and test yourself. Anything is possible, with correct lines of your code. Good Luck, |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you. I solved it by simply defining the function within the file ESP_WiFiManager.hpp. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have this need: in my core.ino I have defined a custom function that returns a string and I would like this string to be displayed by the web server, when it is in AP mode.
I understood how the html page is built (I'm familiar with the ESP_WiFiManager-Impl.h and ESP_WiFiManager.hpp files), what i can't do is to pass this string (computed by my function in core.ino) in the html code.
For the curious, my function returning the string is this:
String getNumericUID(){ byte mac[6]; WiFi.macAddress(mac); String ret = ""; ret = String(mac[5]) + String(mac[4])+ String(mac[3]) + String(mac[2])+ String(mac[1]) + String(mac[0]); return ret; }
Note: I am editing your libraries using github's "submodules", they are very handy!
Thank you
Beta Was this translation helpful? Give feedback.
All reactions