i am using ESP32-s3-WROOM cam board.
i used to compile and use AsyncWebServer library normally , i do not know what recently happened when i am trying to compile even simple code with the AsyncWebServer library the board is crashing "even with the simplest code "
I already built lot of projects with the AsyncWebServer library however now all of them are giving the same crash
appereciate if anyone can advise regarding workaround or fix
#include <WiFi.h>
#include <ESPAsyncWebServer.h>
// Network credentials
const char* ssid = "ssid123";
const char* password = "pass123";
// Create AsyncWebServer object on port 80
AsyncWebServer server(80);
void setup() {
// Initialize Serial Monitor
Serial.begin(115200);
// Connect to WiFi
WiFi.begin(ssid, password);
Serial.println("Connecting to WiFi...");
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
// Print the IP address
Serial.println("\nConnected to WiFi!");
Serial.print("IP Address: ");
Serial.println(WiFi.localIP());
// Define a route to serve a web page
server.on("/", HTTP_GET, [](AsyncWebServerRequest* request) {
request->send(200, "text/plain", "ESP32 Webserver");
});
// Start the server
server.begin();
Serial.println("Webserver started!");
}
void loop() {
// Nothing needed in the loop for AsyncWebServer
}
i am using ESP32-s3-WROOM cam board.
i used to compile and use AsyncWebServer library normally , i do not know what recently happened when i am trying to compile even simple code with the AsyncWebServer library the board is crashing "even with the simplest code "
I already built lot of projects with the AsyncWebServer library however now all of them are giving the same crash
appereciate if anyone can advise regarding workaround or fix
#include <WiFi.h>
#include <ESPAsyncWebServer.h>
// Network credentials
const char* ssid = "ZAYTOUNA 721";
const char* password = "pass123";
// Create AsyncWebServer object on port 80
AsyncWebServer server(80);
void setup() {
// Initialize Serial Monitor
Serial.begin(115200);
// Connect to WiFi
WiFi.begin(ssid, password);
Serial.println("Connecting to WiFi...");
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
// Print the IP address
Serial.println("\nConnected to WiFi!");
Serial.print("IP Address: ");
Serial.println(WiFi.localIP());
// Define a route to serve a web page
server.on("/", HTTP_GET, [](AsyncWebServerRequest* request) {
request->send(200, "text/plain", "ESP32 Webserver");
});
// Start the server
server.begin();
Serial.println("Webserver started!");
}
void loop() {
// Nothing needed in the loop for AsyncWebServer
}
Hi @eltabakh_gomaa. I see a report of this in the library's issue tracker:
An affected user reported that they experienced the problem while using the latest version 3.1.0 of the esp32 platform, but found that it did not occur after they downgraded the platform to 3.0.7.
I was not able to reproduce the crash even after uploading your sketch to my ESP32-S3 board using version 3.1.0 of the esp32 platform. So I'm not able to verify the reported workaround, but if you want to give it a try I'll provide instructions you can follow to install version 3.0.7 of the platform:
Select Tools > Board > Boards Manager... from the Arduino IDE menus to open the "Boards Manager" view in the left side panel.
Scroll down through the list of boards platforms until you see the "esp32" entry.
Select "3.0.7" from the drop-down menu in the "esp32" entry.
Click the "INSTALL" button at the bottom of the entry.
Wait for the installation process to finish, as indicated by a notification at the bottom right corner of the Arduino IDE window:
Successfully installed platform ...
Arduino IDE will occasionally notify you that a new version of the boards platform is available, you'll need to refrain from accepting the offer that will cause an update back to the problematic version of the platform. If you find these notifications annoying, you can disable them via the advanced settings.
I'll provide instructions you can follow to do that:
Press the Ctrl+Shift+P keyboard shortcut (Command+Shift+P for macOS users) to open the "Command Palette".
A menu will appear on the editor toolbar:
Select the "Preferences: Open Settings (UI)" command from the menu. ⓘ You can scroll down through the list of commands to find it or type the name in the field.
A "Preferences" tab will open in the Arduino IDE main panel.
Type arduino.checkForUpdates in the "Search Settings" field of the "Preferences" tab.
Uncheck the box under the "Arduino: Check For Updates" setting.
Close the Preferences tab by clicking its X icon.
If you disable the automatic update check, make sure to periodically do a manual check for newer versions of Arduino IDE and your installed boards platforms and libraries. You can check for new versions of Arduino IDE by selecting Help > Check for Arduino IDE Updates from the Arduino IDE menus. You can check for new versions of boards platforms and libraries by selecting "Updatable" from the "Type" menu in the Boards Manager and Library Manager views.