mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 11:59:12 +03:00
261
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Тип элемента;Id;Виджет;Имя вкладки;Имя виджета;Позиция виджета
|
Удалить;Тип элемента;Id;Виджет;Имя вкладки;Имя виджета;Позиция виджета
|
||||||
|
@@ -43,7 +43,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "h4",
|
"type": "h4",
|
||||||
"title": "LittleFS version: 260"
|
"title": "LittleFS version: 261"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "hr"
|
"type": "hr"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"widget": "btn",
|
"widget": "btn",
|
||||||
"icon": "switch",
|
"size": "large",
|
||||||
"fill": "outline",
|
"color": "green",
|
||||||
"color": "orange"
|
"send": "test"
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,8 @@
|
|||||||
{
|
{
|
||||||
"widget" : "select",
|
"widget": "select",
|
||||||
"size" : "small",
|
"options": [
|
||||||
"fill" : "outline",
|
"Выключен",
|
||||||
"options" : "["Zero item", "First item", "Second item"]",
|
"Включен"
|
||||||
"status" : 2
|
],
|
||||||
|
"status": 0
|
||||||
}
|
}
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
//
|
//
|
||||||
#ifdef ESP8266
|
#ifdef ESP8266
|
||||||
#define FIRMWARE_NAME "esp8266-iotm"
|
#define FIRMWARE_NAME "esp8266-iotm"
|
||||||
#define FIRMWARE_VERSION 260
|
#define FIRMWARE_VERSION 261
|
||||||
#endif
|
#endif
|
||||||
#ifdef ESP32
|
#ifdef ESP32
|
||||||
#define FIRMWARE_NAME "esp32-iotm"
|
#define FIRMWARE_NAME "esp32-iotm"
|
||||||
|
|||||||
@@ -117,8 +117,7 @@ void mqttCallback(char* topic, uint8_t* payload, size_t length) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
} else if (topicStr.indexOf("control")) {
|
} else if (topicStr.indexOf("control")) {
|
||||||
//iotTeam/12882830-1458415/light 1
|
|
||||||
|
|
||||||
String key = selectFromMarkerToMarker(topicStr, "/", 3);
|
String key = selectFromMarkerToMarker(topicStr, "/", 3);
|
||||||
|
|
||||||
orderBuf += key;
|
orderBuf += key;
|
||||||
@@ -135,14 +134,6 @@ void mqttCallback(char* topic, uint8_t* payload, size_t length) {
|
|||||||
if (payloadStr == "1") {
|
if (payloadStr == "1") {
|
||||||
myNotAsyncActions->make(do_UPGRADE);
|
myNotAsyncActions->make(do_UPGRADE);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (topicStr.indexOf("devc")) {
|
|
||||||
writeFile(String(DEVICE_CONFIG_FILE), payloadStr);
|
|
||||||
Device_init();
|
|
||||||
|
|
||||||
} else if (topicStr.indexOf("devs")) {
|
|
||||||
writeFile(String(DEVICE_SCENARIO_FILE), payloadStr);
|
|
||||||
loadScenario();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user