начал писать систему формирования виджетов

This commit is contained in:
Dmitry Borisenko
2022-02-01 00:42:31 +01:00
parent c2b2997952
commit 9ec724ccff
4 changed files with 28 additions and 84 deletions

View File

@@ -25,7 +25,6 @@ void configure(String path) {
myIoTSensor = (IoTSensor*)getAPI(subtype, jsonArrayElement);
if (myIoTSensor) {
iotSensors.push_back(myIoTSensor);
// createWidget(jsonArrayElement);
}
}
}

View File

@@ -229,6 +229,10 @@ void webSocketEvent(uint8_t num, WStype_t type, uint8_t* payload, size_t length)
writeFileUint8tByFrames("config.json", payload, length, headerLenth, 256);
}
if (headerStr == "/tuoyal") {
writeFileUint8tByFrames("layout.json", payload, length, headerLenth, 256);
}
} break;
case WStype_BIN: {