各种固件在98有的在97有的在81停住。卡一个多小时都不能烧录成功。也没有报错。

点击停止也会一直停在这个界面。

不知道怎么回事。
各种固件在98有的在97有的在81停住。卡一个多小时都不能烧录成功。也没有报错。


关注让阿豪来帮你解答,本回答参考chatgpt3.5编写提供,如果还有疑问可以评论或留言问题分析:
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
const char* ssid = "YourNetworkName";
const char* password = "YourNetworkPassword";
void setup() {
Serial.begin(115200);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(1000);
Serial.println("Connecting to WiFi...");
}
Serial.println("Connected to WiFi");
HTTPClient http;
http.begin("http://example.com/firmware.bin");
int httpCode = http.GET();
if (httpCode > 0) {
File firmware = SPIFFS.open("/firmware.bin", "w");
if (firmware) {
http.writeToStream(&firmware);
firmware.close();
Serial.println("Firmware downloaded successfully");
} else {
Serial.println("Error opening firmware file");
}
} else {
Serial.println("Error downloading firmware");
}
http.end();
}
void loop() {
// Code here
}