mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
небольшие изменения
This commit is contained in:
@@ -108,6 +108,8 @@ extern unsigned long flashWriteNumber;
|
||||
|
||||
extern unsigned long wifiUptime;
|
||||
|
||||
extern bool udpReceivingData;
|
||||
|
||||
extern String mqttRootDevice;
|
||||
extern String chipId;
|
||||
extern String prex;
|
||||
|
||||
@@ -54,7 +54,7 @@ void asyncUdpInit() {
|
||||
|
||||
//будем отправлять каждые 30 секунд презентацию данного устройства
|
||||
ts.add(
|
||||
UDP, 30000, [&](void*) {
|
||||
UDP, 60000, [&](void*) {
|
||||
if (isNetworkActive()) {
|
||||
SerialPrint("i", F("UDP"), F("Broadcast device presentation"));
|
||||
asyncUdp.broadcastTo(getThisDevice().c_str(), 4210);
|
||||
|
||||
@@ -59,6 +59,8 @@ unsigned long flashWriteNumber = 0;
|
||||
|
||||
unsigned long wifiUptime = 0;
|
||||
|
||||
bool udpReceivingData = false;
|
||||
|
||||
String chipId = "";
|
||||
String prex = "";
|
||||
String all_widgets = "";
|
||||
|
||||
@@ -69,7 +69,7 @@ void webSocketEvent(uint8_t num, WStype_t type, uint8_t* payload, size_t length)
|
||||
if (headerStr == "/gifnoc|") {
|
||||
writeFileUint8tByFrames("config.json", payload, length, headerLenth, 256);
|
||||
// clearConfigure();
|
||||
configure("/config.json");
|
||||
// configure("/config.json");
|
||||
}
|
||||
//**сохранение**//
|
||||
if (headerStr == "/tuoyal|") {
|
||||
@@ -134,6 +134,7 @@ void webSocketEvent(uint8_t num, WStype_t type, uint8_t* payload, size_t length)
|
||||
if (headerStr == "/update|") {
|
||||
upgrade_firmware(3);
|
||||
}
|
||||
|
||||
} break;
|
||||
|
||||
case WStype_BIN: {
|
||||
|
||||
Reference in New Issue
Block a user