Reverting Alexa fix

General Alexa for all cores doesnt work. Reverting fix.
This fix does only work on Stage core 2.5.0.
Awaiting new general fix from @ascillato soon
This commit is contained in:
Jason2866 2018-10-28 11:17:41 +01:00 committed by GitHub
parent 4f59d102e7
commit b59d63a07a
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("1"));
JsonObject &hue_json = jsonBuffer.parseObject(WebServer->arg((WebServer->args())-1));
if (hue_json.containsKey("on")) {
response += FPSTR(HUE_LIGHT_RESPONSE_JSON);