mirror of
https://github.com/pangodream/ESP2SOTA.git
synced 2026-01-04 12:04:56 +01:00
Code examples
This commit is contained in:
@@ -12,7 +12,7 @@ ESP2SOTAClass::ESP2SOTAClass(){
|
||||
#endif
|
||||
_server = server;
|
||||
//Returns index.html page
|
||||
_server->on("/", HTTP_GET, [&]() {
|
||||
_server->on("/update", HTTP_GET, [&]() {
|
||||
_server->sendHeader("Connection", "close");
|
||||
_server->send(200, "text/html", indexHtml);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user