diff --git a/readme.md b/readme.md index 980fd14..fec7a4f 100644 --- a/readme.md +++ b/readme.md @@ -133,7 +133,7 @@ server.onNotFound([](){ #### Does this library work with ESPAsyncWebServer? -Yes! From v2.3.0 you can use the library asyncronously by adding `#define ESPALEXA_ASYNC` before `#include ` +Yes! From v2.3.0 you can use the library asynchronously by adding `#define ESPALEXA_ASYNC` before `#include ` See the `EspalexaWithAsyncWebServer` example. `ESPAsyncWebServer` and its dependencies must be manually installed. diff --git a/src/Espalexa.h b/src/Espalexa.h index 64e7e41..356e092 100644 --- a/src/Espalexa.h +++ b/src/Espalexa.h @@ -443,7 +443,7 @@ class Espalexa { if (req.indexOf("api") <0) return false; //return if not an API call EA_DEBUGLN("ok"); - if (body.indexOf("devicetype") > 0) //client wants a hue api username, we dont care and give static + if (body.indexOf("devicetype") > 0) //client wants a hue api username, we don't care and give static { EA_DEBUGLN("devType"); body = ""; @@ -550,7 +550,7 @@ class Espalexa { return true; } - //we dont care about other api commands at this time and send empty JSON + //we don't care about other api commands at this time and send empty JSON server->send(200, "application/json", "{}"); return true; }