From 356c0539059cb5da75f234ee6e59d85d8881a8b7 Mon Sep 17 00:00:00 2001 From: Aleksei Date: Wed, 17 Jun 2026 07:59:28 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA=D0=B8=20?= =?UTF-8?q?=D1=83=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F=20?= =?UTF-8?q?=D1=87=D0=B5=D1=80=D0=B5=D0=B7=20POST=20=E2=80=94=20=D0=BE?= =?UTF-8?q?=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D1=81?= =?UTF-8?q?=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D1=8B=20=D0=BD=D0=B5=20?= =?UTF-8?q?=D1=81=D1=80=D0=B0=D0=B1=D0=B0=D1=82=D1=8B=D0=B2=D0=B0=D0=B5?= =?UTF-8?q?=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- barrier_controller/barrier_controller.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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")); }