Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partition Scheme Rainmaker OTA cant update(3.1.x above error here) #10973

Open
1 task done
skylai82 opened this issue Feb 15, 2025 · 0 comments
Open
1 task done

Partition Scheme Rainmaker OTA cant update(3.1.x above error here) #10973

skylai82 opened this issue Feb 15, 2025 · 0 comments
Labels
Status: Awaiting triage Issue is waiting for triage

Comments

@skylai82
Copy link

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.
@skylai82 skylai82 added the Status: Awaiting triage Issue is waiting for triage label Feb 15, 2025
@skylai82 skylai82 changed the title Partition Rainmaker OTA cant update(3.1.x above error here) Partition Scheme Rainmaker OTA cant update(3.1.x above error here) Feb 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Awaiting triage Issue is waiting for triage
Projects
None yet
Development

No branches or pull requests

1 participant