From 8a4435ac93325810f95ca2eef34b835ba058d976 Mon Sep 17 00:00:00 2001 From: Tomas Roj Date: Wed, 8 May 2019 16:36:16 +0200 Subject: [PATCH] Found some small typos and fixed them --- readme.md | 2 +- src/Espalexa.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index 499f172..fea8228 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 997fada..8c09929 100644 --- a/src/Espalexa.h +++ b/src/Espalexa.h @@ -438,7 +438,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 = ""; @@ -533,7 +533,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; }