-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to send a Webpage from ESP32 ? #99
Comments
An example for this can be seen here: https://github.com/nrwiersma/ConfigManager/blob/master/examples/custom-http/custom-http.ino#L109 |
Hi, like this way ?
But there is no result... Thanks a lot ! |
No, like: const char *siteHTML = (char *)"/site.html";
server->on("/site", HTTPMethod::HTTP_GET, [server](){
configManager.streamFile(siteHTML, mimeHTML);
}); You will need to upload |
Ah... `void handle_OnConnect() {
} String SendHTML() { BLEScanner für Shelly\n";ptr += " Gescanntes Device 1: "; So, he generate the answer from his own code. Is this possible in combination with your libary ? Thanks.. |
... config manager setup
configManager.setAPICallback(APICallback);
....
void APCallback(WebServer *server) {
server->on("/site", HTTPMethod::HTTP_GET, [server](){
server.send(200, "text/html", SendHTML());
});
} |
Tried it. "request for member 'send' in 'server', which is of pointer type 'WebServer* const' (maybe you meant to use '->' ?) Then, i switched to:
..and what should i say....? Thanks again, man. It works...!! Thanks a lot and best regards... André |
No problem |
Hi,
the ConfigManager is the perfect libary for me and the projects in the future.
But one question is in my mind.
From a release before i using the ConfigManager, the ESP32 have send a simple html-site with some values, if i sebd a request to: http://ESP32IP/site .
But with the ConfigManager, there is no result when he loads the page.
Is it possible to send this page ?
Best regards
André
The text was updated successfully, but these errors were encountered: