From fba9992a101819799f510e703cf06d7f40d7b04d Mon Sep 17 00:00:00 2001 From: cschwinne Date: Sun, 10 Nov 2019 00:54:35 +0100 Subject: [PATCH] Updated Espalexa (#274) and readme --- readme.md | 7 +++++++ wled00/src/dependencies/espalexa/Espalexa.h | 8 ++++---- wled00/wled00.ino | 2 +- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/readme.md b/readme.md index 645a740ca..feb9bb361 100644 --- a/readme.md +++ b/readme.md @@ -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 diff --git a/wled00/src/dependencies/espalexa/Espalexa.h b/wled00/src/dependencies/espalexa/Espalexa.h index 64e7e41d3..0c817dcf8 100644 --- a/wled00/src/dependencies/espalexa/Espalexa.h +++ b/wled00/src/dependencies/espalexa/Espalexa.h @@ -443,7 +443,7 @@ public: 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 = ""; @@ -453,7 +453,7 @@ public: 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); @@ -550,7 +550,7 @@ public: 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; } @@ -584,4 +584,4 @@ public: ~Espalexa(){delete devices;} //note: Espalexa is NOT meant to be destructed }; -#endif +#endif \ No newline at end of file diff --git a/wled00/wled00.ino b/wled00/wled00.ino index 55bc83b51..17dff3ca4 100644 --- a/wled00/wled00.ino +++ b/wled00/wled00.ino @@ -100,7 +100,7 @@ //version code in format yymmddb (b = daily build) -#define VERSION 1911081 +#define VERSION 1911101 char versionString[] = "0.8.6";