Skip to content

Commit

Permalink
Updated Espalexa (wled#274) and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Aircoookie committed Nov 9, 2019
1 parent 867dce2 commit fba9992
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
7 changes: 7 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ A fast and feature-rich implementation of an ESP8266/ESP32 webserver to control

See the [wiki](https://github.com/Aircoookie/WLED/wiki)!

DrZzs has made some excellent video guides:
https://www.youtube.com/watch?v=tXvtxwK3jRk
https://www.youtube.com/watch?v=6eCE2BpLaUQ

If you'd rather read, here is a very detailed step-by-step beginner tutorial:
https://tynick.com/blog/11-03-2019/getting-started-with-wled-on-esp8266/

### Other

Licensed under the MIT license
Expand Down
8 changes: 4 additions & 4 deletions wled00/src/dependencies/espalexa/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 All @@ -453,7 +453,7 @@ class Espalexa {

if (req.indexOf("state") > 0) //client wants to control light
{
server->send(200, "application/json", "[{\"success\":true}]"); //short valid response
server->send(200, "application/json", "[{\"success\":{\"/lights/1/state/\": true}}]");

uint32_t devId = req.substring(req.indexOf("lights")+7).toInt();
EA_DEBUG("ls"); EA_DEBUGLN(devId);
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 Expand Up @@ -584,4 +584,4 @@ class Espalexa {
~Espalexa(){delete devices;} //note: Espalexa is NOT meant to be destructed
};

#endif
#endif
2 changes: 1 addition & 1 deletion wled00/wled00.ino
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@


//version code in format yymmddb (b = daily build)
#define VERSION 1911081
#define VERSION 1911101
char versionString[] = "0.8.6";


Expand Down

0 comments on commit fba9992

Please sign in to comment.