some fixes

This commit is contained in:
sharandac
2020-08-10 12:35:39 +02:00
parent 40794d8b0a
commit 400fcbd622
14 changed files with 107 additions and 23 deletions

View File

@@ -77,7 +77,7 @@ void handleUpdate( AsyncWebServerRequest *request, const String& filename, size_
/*
*
*/
void asyncwebserver_setup(void){
void asyncwebserver_start(void){
asyncserver.on("/info", HTTP_GET, [](AsyncWebServerRequest *request) {
String message("Firmwarestand: " __DATE__ " " __TIME__ "\nGCC-Version: " __VERSION__ "\n");
@@ -217,4 +217,12 @@ void asyncwebserver_setup(void){
SSDP.begin();
asyncserver.begin();
log_i("enable webserver and ssdp");
}
void asyncwebserver_end(void) {
SSDP.end();
asyncserver.end();
log_i("disable webserver and ssdp");
}