OTA remote - add error string

This commit is contained in:
2023-11-28 12:04:19 +05:30
parent e375daad36
commit 40bedd29fb
4 changed files with 14 additions and 13 deletions
Binary file not shown.
+3 -3
View File
@@ -1,9 +1,9 @@
#ifndef BUILD_NUMBER #ifndef BUILD_NUMBER
#define BUILD_NUMBER 4 #define BUILD_NUMBER 9
#endif #endif
#ifndef VERSION #ifndef VERSION
#define VERSION "v0.1.4 - 2023-11-28 11:53:00.628775" #define VERSION "v0.1.9 - 2023-11-28 12:03:55.553853"
#endif #endif
#ifndef VERSION_SHORT #ifndef VERSION_SHORT
#define VERSION_SHORT "v0.1.4" #define VERSION_SHORT "v0.1.9"
#endif #endif
+2 -1
View File
@@ -56,7 +56,8 @@ void handleOTARemote() {
Serial.println("[update] Update failed."); Serial.println("[update] Update failed.");
break; break;
case HTTP_UPDATE_NO_UPDATES: case HTTP_UPDATE_NO_UPDATES:
Serial.println("[update] Update no Update."); Serial.print("[update] Update no Update. Reason -");
Serial.println(ESPhttpUpdate.getLastErrorString());
break; break;
case HTTP_UPDATE_OK: case HTTP_UPDATE_OK:
Serial.println("[update] Update ok."); // may not be called since we reboot the ESP Serial.println("[update] Update ok."); // may not be called since we reboot the ESP
+1 -1
View File
@@ -1 +1 @@
4 9