XIAO_ESP32-C3 WiFi & ESPAsyncWebServer.h

Having serious compile issues porting some code that compiles & runs fine on a ESPWROOM-32 (and on an 8266) to an XIAO_ESP32-C3 on Arduino IDE using ESP32 libs 2.0.14 or newer.

Using :
#ifdef ESP32
#include <AsyncTCP.h>
#else
#include <ESP8266WiFi.h>
#include <ESPAsyncTCP.h>
#endif
#include <ESPAsyncWebServer.h>

I can compile a downloaded test program for XIAO_ESP32-C3 that uses
#include <WiFi.h>
#include <WebServer.h>

but I want to use the existing code that requires ESPAsyncWebServer.h

Should I be using a different library ? Or different .h’s ?

1 Like

Hi,
WebServer.h is included arduino-esp32. (here)
ESPAsyncWebServer.h is here? it NOT included arduino-esp32.
I don’t know if ESPAsyncWebServer works correctly on ESP32-C3. :sweat_smile:
issues

From what I’m seeing, the compile will fail; with Xiao ESP32C3. Just put #include<ESPAsyncWebServe.h> in a blank project and the compile will fail when Xiao ESP32C3 as the microcontroller. It is also the latest version (2016) I can locate.

Went ahead with the project using a small foorprint 8266 ( WeMos D1 Mini). All is well but of the 11 GPIO pins I had to do much shuffling to get the 3 digital inputs and 1 digital outputs I needed. Many of the GPIO pins are unhappy with either a hi or low digital signal on boot and will cause exceptions. Kinda useless really. FWIW GPIOs 4,5,15,16 seem useable