kopia lustrzana https://github.com/Aircoookie/WLED
Updated Espalexa (#274) and readme
rodzic
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)!
|
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
|
### Other
|
||||||
|
|
||||||
Licensed under the MIT license
|
Licensed under the MIT license
|
||||||
|
|
|
@ -443,7 +443,7 @@ public:
|
||||||
if (req.indexOf("api") <0) return false; //return if not an API call
|
if (req.indexOf("api") <0) return false; //return if not an API call
|
||||||
EA_DEBUGLN("ok");
|
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");
|
EA_DEBUGLN("devType");
|
||||||
body = "";
|
body = "";
|
||||||
|
@ -453,7 +453,7 @@ public:
|
||||||
|
|
||||||
if (req.indexOf("state") > 0) //client wants to control light
|
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();
|
uint32_t devId = req.substring(req.indexOf("lights")+7).toInt();
|
||||||
EA_DEBUG("ls"); EA_DEBUGLN(devId);
|
EA_DEBUG("ls"); EA_DEBUGLN(devId);
|
||||||
|
@ -550,7 +550,7 @@ public:
|
||||||
return true;
|
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", "{}");
|
server->send(200, "application/json", "{}");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -584,4 +584,4 @@ public:
|
||||||
~Espalexa(){delete devices;} //note: Espalexa is NOT meant to be destructed
|
~Espalexa(){delete devices;} //note: Espalexa is NOT meant to be destructed
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
|
@ -100,7 +100,7 @@
|
||||||
|
|
||||||
|
|
||||||
//version code in format yymmddb (b = daily build)
|
//version code in format yymmddb (b = daily build)
|
||||||
#define VERSION 1911081
|
#define VERSION 1911101
|
||||||
char versionString[] = "0.8.6";
|
char versionString[] = "0.8.6";
|
||||||
|
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue