mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 14:42:18 +03:00
Партии выгрузки в логгировании
This commit is contained in:
15
src/Web.cpp
15
src/Web.cpp
@@ -325,13 +325,20 @@ void web_init() {
|
||||
serverIP = jsonReadStr(configSetupJson, "serverip");
|
||||
request->send(200);
|
||||
}
|
||||
//set?order=button_1
|
||||
//set?order=button_1
|
||||
if (request->hasArg("order")) {
|
||||
String order = request->getParam("order")->value();
|
||||
order.replace("_"," ");
|
||||
order.replace("_", " ");
|
||||
orderBuf += order + ",";
|
||||
request->send(200);
|
||||
}
|
||||
|
||||
if (request->hasArg("grafmax")) {
|
||||
int value = request->getParam("grafmax")->value().toInt();
|
||||
jsonWriteInt(configSetupJson, "grafmax", value);
|
||||
saveConfig();
|
||||
request->send(200);
|
||||
}
|
||||
});
|
||||
|
||||
server.on("/order", HTTP_GET, [](AsyncWebServerRequest* request) {
|
||||
@@ -345,8 +352,6 @@ void web_init() {
|
||||
String msg = "";
|
||||
|
||||
if (USE_OTA) {
|
||||
msg = F("Обновление невозможно, память устройства 1 мб");
|
||||
} else {
|
||||
if (lastVersion == FIRMWARE_VERSION) {
|
||||
msg = F("Актуальная версия прошивки уже установлена.");
|
||||
} else if (lastVersion > FIRMWARE_VERSION) {
|
||||
@@ -358,6 +363,8 @@ void web_init() {
|
||||
} else if (lastVersion < FIRMWARE_VERSION) {
|
||||
msg = F("Ошибка версии. Попробуйте повторить позже...");
|
||||
}
|
||||
} else {
|
||||
msg = F("Обновление невозможно, память устройства 1 мб");
|
||||
}
|
||||
|
||||
String tmp = "{}";
|
||||
|
||||
Reference in New Issue
Block a user