This commit is contained in:
Dmitry Borisenko
2020-10-01 20:38:46 +03:00
parent 52b8d971d8
commit a77784abc7
4 changed files with 5 additions and 48 deletions

View File

@@ -3,8 +3,8 @@
"chipID": "",
"apssid": "IoTmanager",
"appass": "",
"routerssid": "rise",
"routerpass": "hostel3333",
"routerssid": "home",
"routerpass": "kisa3333",
"timezone": 2,
"ntp": "pool.ntp.org",
"mqttServer": "91.204.228.124",

View File

@@ -43,7 +43,7 @@
},
{
"type": "h4",
"title": "LittleFS version: 241"
"title": "LittleFS version: 243"
},
{
"type": "hr"

View File

@@ -2,7 +2,7 @@
//=================Firmeare=================
#define FIRMWARE_NAME "esp8266-iotm"
#define FIRMWARE_VERSION 241
#define FIRMWARE_VERSION 243
#define FLASH_4MB true
//=================System===================

View File

@@ -83,47 +83,4 @@ void restartEsp() {
Serial.println("Restart ESP....");
delay(1000);
ESP.restart();
}
//void upgrade_firmware() {
// String scanerioBackup, configBackup, setupBackup;
//
// scanerioBackup = readFile(String(DEVICE_SCENARIO_FILE), 4096);
// configBackup = readFile(String(DEVICE_CONFIG_FILE), 4096);
// setupBackup = configSetupJson;
//
// SerialPrint("I","module","update data");
// WiFiClient wifiClient;
//#ifdef ESP8266
// ESPhttpUpdate.rebootOnUpdate(false);
// t_httpUpdate_return ret = ESPhttpUpdate.updateSpiffs(wifiClient, F("http://91.204.228.124:1100/update/esp8266/esp32-esp8266_iot-manager_modules_firmware.spiffs.bin"));
//#else
// httpUpdate.rebootOnUpdate(false);
// t_httpUpdate_return ret = httpUpdate.updateSpiffs(client_for_upgrade, F("http://91.204.228.124:1100/update/esp32/esp32-esp8266_iot-manager_modules_firmware.spiffs.bin"));
//#endif
// if (ret == HTTP_UPDATE_OK) {
// writeFile(String(DEVICE_SCENARIO_FILE), scanerioBackup);
// writeFile(String(DEVICE_CONFIG_FILE), configBackup);
// writeFile("config.json", setupBackup);
//
// saveConfig();
//
// SerialPrint("I","module","done!");
// } else {
// SerialPrint("[E]","module","on data");
// return;
// }
//
// //Serial.println("update firmware");
//#ifdef ESP8266
// ret = ESPhttpUpdate.update(wifiClient, F("http://91.204.228.124:1100/update/esp8266/esp32-esp8266_iot-manager_modules_firmware.ino.bin"));
//#else
// ret = httpUpdate.update(client_for_upgrade, "http://91.204.228.124:1100/update/esp32/esp32-esp8266_iot-manager_modules_firmware.ino.bin");
//#endif
// if (ret == HTTP_UPDATE_OK) {
// SerialPrint("I","module","done! restart...");
// ESP.restart();
// } else {
// SerialPrint("[E]","module","on firmware");
// }
//}
}