air firmware upgrade

This commit is contained in:
Dmitry Borisenko
2020-03-04 01:56:24 +03:00
parent f8a50e09b7
commit 0064e557f1
5 changed files with 17 additions and 6 deletions

View File

@@ -60,6 +60,16 @@ void setup() {
getMemoryLoad("[i] After loading");
#ifdef ESP8266
new_version = getURL("http://91.204.228.124:1100/update/esp8266/version.txt");
#endif
#ifdef ESP32
new_version = getURL("http://91.204.228.124:1100/update/esp32/version.txt");
#endif
Serial.print("[i] Last firmware version: ");
Serial.println(new_version);
ts.add(TEST, 14400, [&](void*) {
statistics();