diff --git a/barrier_controller/barrier_controller.ino b/barrier_controller/barrier_controller.ino index 8a10f57..7772cb7 100644 --- a/barrier_controller/barrier_controller.ino +++ b/barrier_controller/barrier_controller.ino @@ -152,11 +152,11 @@ input[type=text]:focus,input[type=password]:focus{outline:none;border-color:#219 html += R"(

Управление

-
+
-
+
@@ -212,7 +212,7 @@ void setupRoutes() { server.send(200, "text/html", buildPage()); }); - server.on("/cmd", HTTP_GET, []() { + server.on("/cmd", HTTP_POST, []() { String b = server.arg("b"); if (b == "1") { sendCommand(cfg_ip1); server.send(200, "text/html", buildPage("✅ Команда → шлагбаум 1")); } else if (b == "2") { sendCommand(cfg_ip2); server.send(200, "text/html", buildPage("✅ Команда → шлагбаум 2")); }