Skip to content

Commit

Permalink
Merge pull request #66 from TomasRoj/fix-misspelled-words
Browse files Browse the repository at this point in the history
Found some small typos and fixed them
  • Loading branch information
Aircoookie authored May 8, 2019
2 parents cae0de6 + 8a4435a commit 87d2e41
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 @@ -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 = "";
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 87d2e41

Please sign in to comment.