From fa517d5d22baff6897e70449790c006521698720 Mon Sep 17 00:00:00 2001 From: cschwinne Date: Tue, 12 Dec 2017 15:54:23 +0100 Subject: [PATCH] Updated readme, link to wiki Fixed unlock parameter --- readme.md | 17 +---------------- wled00/wled03_set.ino | 4 ++-- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/readme.md b/readme.md index 6cbe67c8..dd6c56ef 100644 --- a/readme.md +++ b/readme.md @@ -50,22 +50,7 @@ You will need to install the NeoPixelBus library by Makuna. All other dependenci ### Advanced module control via HTTP requests API: -Base URL scheme: "/win". This will return a XML file with some current values. -Add one or multiple of the following parameters after the base url to change values: -- "&A=<0-255>" set LED brightness (yellow slider) -- "&R=<0-255>" set LED red value (red slider) -- "&G=<0-255>" set LED green value (green slider) -- "&B=<0-255>" set LED blue value (blue slider) -- "&W=<0-255>" set LED white value (white slider) (only when RGBW enabled) -- "&T=<0 or 1 or 2-255>" 0: switch off, on, toggle -- "&FX=<0-47>" set LED effect (refer to WS2812FX library) -- "&SX=<0-255>" set LED effect speed (refer to WS2812FX library) -- "&RN=<0 or 1>" receive notifications on or off -- "&SN=<0 or 1>" send (direct) notifications on or off -- "&NL=<0 or 1>" turns nightlight function on or off -- "&MD=<0 or 1>" sets client color picker mode (RGB/HSB) - -(this list is incomplete, will be available in wiki) +See the [wiki](https://github.com/Aircoookie/WLED/wiki/HTTP-request-API)! ### Other diff --git a/wled00/wled03_set.ino b/wled00/wled03_set.ino index 0bdddf5d..9f807fd1 100644 --- a/wled00/wled03_set.ino +++ b/wled00/wled03_set.ino @@ -412,7 +412,7 @@ boolean handleSet(String req) pos = req.indexOf("L2="); if (pos > 0){ int index2 = req.substring(pos + 3).toInt(); - if (req.indexOf("UL=") > 0) + if (req.indexOf("UL") > 0) { strip.unlockRange(index, index2); } else @@ -421,7 +421,7 @@ boolean handleSet(String req) } } else { - if (req.indexOf("UL=") > 0) + if (req.indexOf("UL") > 0) { strip.unlock(index); } else