diff --git a/lib/UpdateOTA/library.json b/lib/UpdateOTA/library.json index 3c789ea..9ff53d4 100644 --- a/lib/UpdateOTA/library.json +++ b/lib/UpdateOTA/library.json @@ -1,6 +1,6 @@ { "name": "UpdateOTA", - "version": "6.0.0", + "version": "7.0.0", "description": "The UpdateOTA Library streamlines the implementation of Over-The-Air firmware updates for ESP8266-based projects. It introduces an abstract class, *UpdateOTAInterface*, defining methods for starting updates, retrieving version numbers, and handling update errors. The library is designed to work seamlessly with ESP8266, Arduino, and other related libraries.", "keywords": "UpdateOTA, OTA,over the air, update http, updater,arduino ota,firmware update,upload spiffs, ESP32, ronny, antoon, MetaHouse", "repository": { @@ -25,12 +25,12 @@ { "owner": "ronny-antoon", "name": "MultiPrinterLogger", - "version": "6.0.0" + "version": "*" }, { "owner": "ronny-antoon", "name": "RelayModule", - "version": "6.0.0" + "version": "*" } ] } \ No newline at end of file diff --git a/lib/UpdateOTA/src/UpdateOTA.cpp b/lib/UpdateOTA/src/UpdateOTA.cpp index 7e0dfbc..f05b06c 100644 --- a/lib/UpdateOTA/src/UpdateOTA.cpp +++ b/lib/UpdateOTA/src/UpdateOTA.cpp @@ -33,7 +33,7 @@ UpdateOTA::~UpdateOTA() UpdateOTAError UpdateOTA::startUpdate(const char *uRL, bool isFirmware) { - Log_Info(_logger, "UpdateOTA startUpdate: URL='%s', isFirmware=%s", uRL, isFirmware ? "true" : "false"); + Log_Verbose(_logger, "UpdateOTA startUpdate: URL='%s', isFirmware=%s", uRL, isFirmware ? "true" : "false"); // Set member variables based on input parameters _uRL = uRL; @@ -83,7 +83,7 @@ UpdateOTAError UpdateOTA::startUpdate(const char *uRL, bool isFirmware) // If the update is not for the firmware, then return if (!_isFirmware) { - Log_Info(_logger, "UpdateOTA startUpdate: Update completed successfully (not firmware)"); + Log_Verbose(_logger, "UpdateOTA startUpdate: Update completed successfully (not firmware)"); return UpdateOTAError::SUCCESS; } @@ -138,7 +138,7 @@ UpdateOTAError UpdateOTA::getVersionNumber(const char *uRL, char *buffer, uint8_ _wifiClientSecure->readBytes(buffer, _httpClient->getSize()); buffer[_httpClient->getSize()] = '\0'; // Null-terminate the string - Log_Debug(_logger, "UpdateOTA getVersionNumber: Version retrieved successfully"); + Log_Verbose(_logger, "UpdateOTA getVersionNumber: Version retrieved successfully"); return UpdateOTAError::SUCCESS; } @@ -340,7 +340,7 @@ void UpdateOTA::printProgress(size_t written, size_t total) { // Print the progress float progress = (float)written / (float)total * 100; - Log_Debug(_logger, "UpdateOTA printProgress: Progress=%.2f%%", progress); + Log_Verbose(_logger, "UpdateOTA printProgress: Progress=%.2f%%", progress); } void UpdateOTA::toggleLed() diff --git a/readme.md b/readme.md index 41d35e7..3766370 100644 --- a/readme.md +++ b/readme.md @@ -53,7 +53,7 @@ To integrate the *UpdateOTA* library into your PlatformIO project, follow these 2. Add the following line to the `lib_deps` option under the `[env:]` section: ```cpp -ronny-antoon/UpdateOTA@^4.5.0 +ronny-antoon/UpdateOTA@^7.0.0 ``` 3. Build your project, and PlatformIO will automatically handle library installation.