Updated Espalexa (#274) and readme

This commit is contained in:
cschwinne 2019-11-10 00:54:35 +01:00
parent 867dce2294
commit fba9992a10
3 changed files with 12 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

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