Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Aircoookie committed Jun 3, 2019
2 parents 9d57e2c + 87d2e41 commit c68d55f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <Espalexa.h>`
Yes! From v2.3.0 you can use the library asynchronously by adding `#define ESPALEXA_ASYNC` before `#include <Espalexa.h>`
See the `EspalexaWithAsyncWebServer` example.
`ESPAsyncWebServer` and its dependencies must be manually installed.

Expand Down
4 changes: 2 additions & 2 deletions src/Espalexa.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "";
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit c68d55f

Please sign in to comment.