diff --git a/data/config.json b/data/config.json index 0776aa6c..7cd5e871 100644 --- a/data/config.json +++ b/data/config.json @@ -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", diff --git a/data/set.device.json b/data/set.device.json index 6fdd68af..f2bafcc3 100644 --- a/data/set.device.json +++ b/data/set.device.json @@ -43,7 +43,7 @@ }, { "type": "h4", - "title": "LittleFS version: 241" + "title": "LittleFS version: 243" }, { "type": "hr" diff --git a/include/Consts.h b/include/Consts.h index 9a5f6996..f0e9731f 100644 --- a/include/Consts.h +++ b/include/Consts.h @@ -2,7 +2,7 @@ //=================Firmeare================= #define FIRMWARE_NAME "esp8266-iotm" -#define FIRMWARE_VERSION 241 +#define FIRMWARE_VERSION 243 #define FLASH_4MB true //=================System=================== diff --git a/src/UpgradeFirm.cpp b/src/UpgradeFirm.cpp index 5bc47cd2..a1e2c524 100644 --- a/src/UpgradeFirm.cpp +++ b/src/UpgradeFirm.cpp @@ -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"); -// } -//} +} \ No newline at end of file