arduino json 6 async web server migration (#491)

* arduino json 6 async web server migration

* Update .travis.yml

fix travis error

* Revert "Update .travis.yml"

This reverts commit 37d1bf0e71.

* gitignore

* test fix travis

* fix travis

* fix proposed in #487

* fix travis

* fix travis

* fix travis

* fix travis

* ARDUINOJSON_5_COMPATIBILITY

* replaced to #if ARDUINOJSON_VERSION_MAJOR == 5

* fix

* added AsyncWebServer::end()

* added AsyncWebServer::end()

* Update WebServer.cpp

fix

* fix typo

* fix typo
This commit is contained in:
Marco Tombesi
2019-06-22 12:20:31 +02:00
committed by Me No Dev
parent 95dedf7a2d
commit bde2fce07b
8 changed files with 166 additions and 79 deletions

View File

@@ -52,8 +52,9 @@ AsyncWebServer::AsyncWebServer(uint16_t port)
}
AsyncWebServer::~AsyncWebServer(){
reset();
delete _catchAllHandler;
reset();
end();
if(_catchAllHandler) delete _catchAllHandler;
}
AsyncWebRewrite& AsyncWebServer::addRewrite(AsyncWebRewrite* rewrite){
@@ -83,6 +84,10 @@ void AsyncWebServer::begin(){
_server.begin();
}
void AsyncWebServer::end(){
_server.end();
}
#if ASYNC_TCP_SSL_ENABLED
void AsyncWebServer::onSslFileRequest(AcSSlFileHandler cb, void* arg){
_server.onSslFileRequest(cb, arg);