Description
Board
LolinS2MINI
Device Description
Partition Rainmaker OTA cant update(3.1.x above error here),
Suggest use version 3.0.0
Hardware Configuration
void performFirmwareUpdate() {
// 设置回调
httpUpdate.onStart(update_started);
httpUpdate.onEnd(update_finished);
httpUpdate.onProgress(update_progress);
httpUpdate.onError(update_error);
// 使用 WiFiClientSecure 进行 HTTPS 连接
WiFiClientSecure client;
client.setInsecure(); // 跳过证书验证
// 开始 OTA 更新
t_httpUpdate_return ret = httpUpdate.update(client, "https://raw.githubusercontent.com/skylai82/WemosS2PicoRadio/refs/heads/main/CudeRadioPlaylist.ino.bin");
// 处理更新结果
switch (ret) {
case HTTP_UPDATE_FAILED:
Serial.printf("HTTP_UPDATE_FAILED Error (%d): %s\n", httpUpdate.getLastError(), httpUpdate.getLastErrorString().c_str()); // 3.1.x above error here
break;
case HTTP_UPDATE_NO_UPDATES:
Serial.println("HTTP_UPDATE_NO_UPDATES");
break;
case HTTP_UPDATE_OK:
Serial.println("HTTP_UPDATE_OK");
break;
}
}
Version
v3.1.2
IDE Name
Arduino lDE Version: 2.3.4
Operating System
win11
Flash frequency
80
PSRAM enabled
yes
Upload speed
115200
Description
Partition Rainmaker OTA cant update thru OTA (3.1.x above error here)
Sketch
void performFirmwareUpdate() {
// 设置回调
httpUpdate.onStart(update_started);
httpUpdate.onEnd(update_finished);
httpUpdate.onProgress(update_progress);
httpUpdate.onError(update_error);
// 使用 WiFiClientSecure 进行 HTTPS 连接
WiFiClientSecure client;
client.setInsecure(); // 跳过证书验证
// 开始 OTA 更新
t_httpUpdate_return ret = httpUpdate.update(client, "https://raw.githubusercontent.com/skylai82/WemosS2PicoRadio/refs/heads/main/CudeRadioPlaylist.ino.bin");
// 处理更新结果
switch (ret) {
case HTTP_UPDATE_FAILED:
Serial.printf("HTTP_UPDATE_FAILED Error (%d): %s\n", httpUpdate.getLastError(), httpUpdate.getLastErrorString().c_str()); // 3.1.x above error here
break;
case HTTP_UPDATE_NO_UPDATES:
Serial.println("HTTP_UPDATE_NO_UPDATES");
break;
case HTTP_UPDATE_OK:
Serial.println("HTTP_UPDATE_OK");
break;
}
}
Debug Message
HTTP error code: -1
Other Steps to Reproduce
Downgrade to esp32 by Espressif Systems 3.0.0 installed
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.