Updated Espalexa (#274) and readme
This commit is contained in:
parent
867dce2294
commit
fba9992a10
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -100,7 +100,7 @@
|
||||
|
||||
|
||||
//version code in format yymmddb (b = daily build)
|
||||
#define VERSION 1911081
|
||||
#define VERSION 1911101
|
||||
char versionString[] = "0.8.6";
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user