From c1e8f1daa4d4be2b3acacb4f629e0397df53c69a Mon Sep 17 00:00:00 2001 From: EhudB Date: Sat, 2 Nov 2019 15:07:56 +0200 Subject: [PATCH] Fixed Alexa saying that the device is not working --- src/Espalexa.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Espalexa.h b/src/Espalexa.h index 356e092..649bc19 100644 --- a/src/Espalexa.h +++ b/src/Espalexa.h @@ -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);