mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 02:52:11 +01:00
Fixed script error associated with unlinking remotes.
This commit is contained in:
parent
6711162c55
commit
5c06f2a6d4
5 changed files with 10 additions and 5 deletions
1
Web.cpp
1
Web.cpp
|
|
@ -1394,6 +1394,7 @@ void Web::begin() {
|
|||
});
|
||||
server.on("/unlinkRemote", []() {
|
||||
webServer.sendCORSHeaders();
|
||||
if(server.method() == HTTP_OPTIONS) { server.send(200, "OK"); return; }
|
||||
HTTPMethod method = server.method();
|
||||
if (method == HTTP_PUT || method == HTTP_POST) {
|
||||
// We are updating an existing shade by adding a linked remote.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue