Skip to content

Commit

Permalink
change loggs
Browse files Browse the repository at this point in the history
  • Loading branch information
ronny-antoon committed Nov 28, 2023
1 parent 5347963 commit e7cb55b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions lib/UpdateOTA/library.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -25,12 +25,12 @@
{
"owner": "ronny-antoon",
"name": "MultiPrinterLogger",
"version": "6.0.0"
"version": "*"
},
{
"owner": "ronny-antoon",
"name": "RelayModule",
"version": "6.0.0"
"version": "*"
}
]
}
8 changes: 4 additions & 4 deletions lib/UpdateOTA/src/UpdateOTA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e7cb55b

Please sign in to comment.