Skip to content

Commit

Permalink
Merge pull request #88 from EhudB/master
Browse files Browse the repository at this point in the history
Fixed Alexa saying that the device is not working
  • Loading branch information
Aircoookie authored Nov 2, 2019
2 parents c68d55f + c1e8f1d commit fa40ecc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Espalexa.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fa40ecc

Please sign in to comment.