Skip to content

Commit 68fb787

Browse files
committed
feat(hosted): Update and enhance logging of esp-hosted
1 parent c987ddc commit 68fb787

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ dependencies:
109109
rules:
110110
- if: "target in [esp32s3, esp32p4]"
111111
espressif/esp_hosted:
112-
version: "^2.8.0"
112+
version: "^2.9.2"
113113
rules:
114114
- if: "target == esp32p4"
115115
espressif/esp_wifi_remote:

libraries/ESP_HostedOTA/src/ESP_HostedOTA.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ bool updateEspHostedSlave() {
7373
NetworkClient *stream = https.getStreamPtr();
7474

7575
// Step 11: Initialize the ESP-Hosted update process
76+
Serial.println("Beginning update process...");
7677
if (!hostedBeginUpdate()) {
7778
Serial.println("ERROR: esp-hosted update start failed!");
7879
https.end();
@@ -118,21 +119,24 @@ bool updateEspHostedSlave() {
118119

119120
// Step 14: Check if entire firmware has been downloaded
120121
if (len == 0) {
122+
Serial.println();
121123
// Finalize the update process
124+
Serial.println("Finalizing update process...");
122125
if (!hostedEndUpdate()) {
123-
Serial.println("\nERROR: esp-hosted update end failed!");
126+
Serial.println("ERROR: esp-hosted update end failed!");
124127
break;
125128
}
126129

127130
// Activate the new firmware
131+
Serial.println("Activating new firmware...");
128132
if (!hostedActivateUpdate()) {
129-
Serial.println("\nERROR: esp-hosted update activate failed!");
133+
Serial.println("ERROR: esp-hosted update activate failed!");
130134
break;
131135
}
132136

133137
// Update completed successfully
134138
updateSuccess = true;
135-
Serial.println("\nSUCCESS: esp-hosted co-processor updated!");
139+
Serial.println("SUCCESS: esp-hosted co-processor updated!");
136140
break;
137141
}
138142
}

0 commit comments

Comments
 (0)