Merge pull request #4177 from ascillato/patch-1

Fix Alexa for ALL cores
This commit is contained in:
Theo Arends 2018-10-27 08:22:30 +02:00 committed by GitHub
commit 1330372f46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -664,7 +664,7 @@ void HueLights(String *path)
response = "[";
StaticJsonBuffer<400> jsonBuffer;
JsonObject &hue_json = jsonBuffer.parseObject(WebServer->arg((WebServer->args())-1));
JsonObject &hue_json = jsonBuffer.parseObject(WebServer->arg("1"));
if (hue_json.containsKey("on")) {
response += FPSTR(HUE_LIGHT_RESPONSE_JSON);