summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HouseControl.ino10
1 files changed, 5 insertions, 5 deletions
diff --git a/HouseControl.ino b/HouseControl.ino
index 61ccb15..d76daf4 100644
--- a/HouseControl.ino
+++ b/HouseControl.ino
@@ -298,17 +298,17 @@ void jsonHandler(WebServer &server, WebServer::ConnectionType type, char *url_ta
void doHandler(WebServer &server, WebServer::ConnectionType type, char *url_tail, bool tail_complete) {
if (type == WebServer::POST) {
bool repeat;
- char name[16], value[16];
+// char name[16], value[16];
do {
- repeat = server.readPOSTparam(name, 16, value, 16);
+ repeat = server.readPOSTparam((char*)buf2, BUF2_SIZE, (char*)buf1, BUF1_SIZE);
- if ((strcmp(name, "frontdoor") == 0))
+ if ((strcmp((const char*)buf2, "frontdoor") == 0))
toggleDoorControl(&frontDoor);
- if ((strcmp(name, "garagedoor1") == 0))
+ if ((strcmp((const char*)buf2, "garagedoor1") == 0))
toggleDoorControl(&garageDoor1);
- if ((strcmp(name, "garagedoor2") == 0))
+ if ((strcmp((const char*)buf2, "garagedoor2") == 0))
toggleDoorControl(&garageDoor2);
} while (repeat);