Closed Yourry closed 3 weeks ago
Hello @Yourry : I am the maintainer of these libs (async and ESPAsyncWebServer). I will check later today.
I had similar issues in another project with
For the sha include I will check also.
Also maybe try with lib_ldf_mode = chain in your platformio config.
And fyi, you can use Arduino 3 now...
See: https://github.com/pioarduino/platform-espressif32?tab=readme-ov-file#stable-version
@Yourry : can you please provide your platformio config file ?
I am unable to reproduce. Here is my platformio file:
[env:lolin_c3_mini]
platform = espressif32
board = lolin_c3_mini
framework = arduino
lib_compat_mode = strict
lib_deps =
mathieucarbou/AsyncTCP @ 3.2.5
mathieucarbou/ESPAsyncWebServer @ 3.2.4
ayushsharma82/ElegantOTA @ 3.1.4
build_flags = -D ELEGANTOTA_USE_ASYNC_WEBSERVER=1
But like I said, it depends also on your includes in your app... The app I am testing with has these headers in the main class:
#include <ESPAsyncWebServer.h>
#include <MycilaSystem.h>
#include <WiFi.h>
Already thanks for the quick answers! For the main.cpp code I use the one from the tutorial:
/*
-----------------------
ElegantOTA - Demo Example
-----------------------
Skill Level: Beginner
This example provides with a bare minimal app with ElegantOTA functionality.
Github: https://github.com/ayushsharma82/ElegantOTA
WiKi: https://docs.elegantota.pro
Works with both ESP8266 & ESP32
-------------------------------
Upgrade to ElegantOTA Pro: https://elegantota.pro
*/
#if defined(ESP8266)
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#elif defined(ESP32)
#include <WiFi.h>
#include <WiFiClient.h>
#include <WebServer.h>
#endif
#include <ElegantOTA.h>
const char* ssid = "MON_SSID";
const char* password = "MON_PASS";
#if defined(ESP8266)
ESP8266WebServer server(80);
#elif defined(ESP32)
WebServer server(80);
#endif
void setup(void) {
Serial.begin(115200);
WiFi.mode(WIFI_STA);
WiFi.begin(ssid, password);
Serial.println("");
// Wait for connection
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.print("Connected to ");
Serial.println(ssid);
Serial.print("IP address: ");
Serial.println(WiFi.localIP());
server.on("/", []() {
server.send(200, "text/plain", "Hi! This is ElegantOTA Demo.");
});
ElegantOTA.begin(&server); // Start ElegantOTA
server.begin();
Serial.println("HTTP server started");
}
void loop(void) {
server.handleClient();
ElegantOTA.loop();
}
And the platformio (I copied yours and I have the error):
[env:lolin_c3_mini]
platform = espressif32
board = lolin_c3_mini
framework = arduino
lib_compat_mode = strict
lib_deps =
mathieucarbou/AsyncTCP @ 3.2.5
mathieucarbou/ESPAsyncWebServer @ 3.2.4
ayushsharma82/ElegantOTA @ 3.1.4
build_flags = -D ELEGANTOTA_USE_ASYNC_WEBSERVER=1
There is nothing else, the project is blank.
However when I replace the line:
platform = espressif32
With this one:
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.04/platform-espressif32.zip
The compilation error disappears and everything is ok. Unfortunately the upload does not work because of the lack of the ESP32 C3 firmware but that is another topic. I will test with another ESP32. Thanks
👍 You should switch to Arduino 3 anyway...
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.
Hello, I am a visual studio code user and I can't compile and install elegantOTA on my esp32 c3 mini. I followed the tutorial: https://docs.elegantota.pro/installation/
Here is my platorfmio.ini file :
The main.cpp is the tutorial code, I just changed the wifi data.
When compiling I get the following error:
Do you have any idea? Did I do something wrong? Thank you very much