mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
Добавляем варианты частичной прошивки
This commit is contained in:
@@ -6,8 +6,12 @@ class UpdateServer : public IoTItem {
|
|||||||
UpdateServer(String parameters) : IoTItem(parameters) {}
|
UpdateServer(String parameters) : IoTItem(parameters) {}
|
||||||
|
|
||||||
void onModuleOrder(String &key, String &value) {
|
void onModuleOrder(String &key, String &value) {
|
||||||
if (key == "startUpdate") {
|
if (key == "startUpdateAll") {
|
||||||
upgrade_firmware(3, value);
|
upgrade_firmware(3, value);
|
||||||
|
} else if (key == "startUpdateFS") {
|
||||||
|
upgrade_firmware(2, value);
|
||||||
|
} else if (key == "startUpdateFW") {
|
||||||
|
upgrade_firmware(1, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,9 @@
|
|||||||
"widget": "",
|
"widget": "",
|
||||||
"page": "",
|
"page": "",
|
||||||
"descr": "",
|
"descr": "",
|
||||||
"btn-startUpdate": "http://192.168.11.112/iotm"
|
"btn-startUpdateAll": "http://192.168.11.112/iotm/esp8266_4mb/400",
|
||||||
|
"btn-startUpdateFS": "http://192.168.11.112/iotm/esp8266_4mb/400",
|
||||||
|
"btn-startUpdateFW": "http://192.168.11.112/iotm/esp8266_4mb/400"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"about": {
|
"about": {
|
||||||
|
|||||||
Reference in New Issue
Block a user