Comments (11)
Same here, using platformIO in VSCode. I'm looking back in the code to confirm, but I think that ELEGANTOTA_USE_ASYNC_WEBSERVER should be set to 1 and that isn't happening.
from elegantota.
Ditto. I am using Arduino IDE 2.2
from elegantota.
Arduino IDE 2.2.1
Additional Boards Manager: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
Board: NodeMCU 0.9 (ESP-12 Module)
Libraries:
AsyncTCP by dvarrel 1.1.4 installed
ESPAsyncTCP by dvarrel 1.2.4 installed
ElegantOTA by Ayush Sharma 3.1.0 installed
Error Messages:
c:\Users\Joseph Wilton\Documents\Arduino\libraries\ElegantOTA\src\ElegantOTA.cpp: In lambda function:
c:\Users\Joseph Wilton\Documents\Arduino\libraries\ElegantOTA\src\ElegantOTA.cpp:76:71: error: 'FS_end' was not declared in this scope
uint32_t update_size = mode == OTA_MODE_FILESYSTEM ? ((size_t)FS_end - (size_t)FS_start) : ((ESP.getFreeSketchSpace() - 0x1000) & 0xFFFFF000);
^
c:\Users\Joseph Wilton\Documents\Arduino\libraries\ElegantOTA\src\ElegantOTA.cpp:76:88: error: 'FS_start' was not declared in this scope
uint32_t update_size = mode == OTA_MODE_FILESYSTEM ? ((size_t)FS_end - (size_t)FS_start) : ((ESP.getFreeSketchSpace() - 0x1000) & 0xFFFFF000);
^
exit status 1
Compilation error: exit status 1
from elegantota.
@JMWilton, I believe the FS_end and FS_start issue may be something different. Try #143 (comment)
from elegantota.
@markeby try the instructions here, https://docs.elegantota.pro/async-mode/
This should solve your issue.
from elegantota.
@markeby Did you get it working?
from elegantota.
@markeby try the instructions here, https://docs.elegantota.pro/async-mode/
This should solve your issue.
Following the async docs and using the example code does not compile. Using the latest PlatformIO, building produces a ton of #error "include FreeRTOS.h" must appear in source files before "..."
errors, beginning with this one:
In file included from .pio/libdeps/nodemcu-32s/AsyncTCP/src/AsyncTCP.h:29,
from src/main.cpp:29:
/Users/SomeUser/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/include/freertos/semphr.h:31:6: error: #error "include FreeRTOS.h" must appear in source files before "include semphr.h"
#error "include FreeRTOS.h" must appear in source files before "include semphr.h"
I resolved the various conflicts with a previous declaration
errors by ensuring that AsyncTCP wasn't listed twice in /.pio/libdeps
. Make sure that you're not listing AsyncTCP
in your lib_deps
, as ESPAsyncWebServer already brings that lib in for you.
lib_deps =
ayushsharma82/ElegantOTA@^3.1.0
https://github.com/me-no-dev/ESPAsyncWebServer.git
; https://github.com/me-no-dev/AsyncTCP.git
build_flags=-DELEGANTOTA_USE_ASYNC_WEBSERVER=1
I also tried going into my /.pio/libdeps/*/ElegantOTA
and updating the #define ELEGANTOTA_USE_ASYNC_WEBSERVER 1
flag myself (instead of using the build_flags
), but without success.
from elegantota.
FYI here is what I am using on a big project using ElegantOTA, ESH-DASH and which works on ESP32, ESP32S, ESP32S2, ESP32S3, with and without ethernet:
-D ELEGANTOTA_USE_ASYNC_WEBSERVER
lib_deps =
bblanchon/ArduinoJson @ 7.0.3
esphome/AsyncTCP-esphome @ 2.1.3
mathieucarbou/ESP Async WebServer @ 2.7.0
https://github.com/ayushsharma82/ElegantOTA
( ref )
from elegantota.
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.
from elegantota.
This issue was closed because it has been stalled for 5 days with no activity.
from elegantota.
Hello
I tried using ElegantOTA. It conflicted with AsyncTCP. I uninstalled AsyncTCP. When I uninstalled it, it gave me a WiFiManager error. Don't we have a chance to use them together? thanks
from elegantota.
Related Issues (20)
- Failed to write chunked data to free space HOT 2
- EspressifSystems version 3.0.1 arduino ide 1.8.19 HOT 4
- Did you remove the Coffee Crap? HOT 8
- Use of absolute paths causes failures with subpath-based reverse proxying HOT 4
- esp_int_wdt.h no such file directory HOT 1
- error after enable async mode HOT 11
- beginResponse_P - Braking Change in mathieucarbou / ESPAsyncWebServer for ESP32 in release 3.0.2 HOT 13
- Platformio - ElegantOTA AsyncTCP library multiple defines clash with all versions of AsyncMQTT HOT 5
- MakerFabs ESP32 S3 in bootloop HOT 16
- ElegantOTA PlatformIO error HOT 6
- Compilation error on ESP32-S3 HOT 3
- Webserver fails to connect afer one OTA upload HOT 2
- ElegantOTA in a ESP32 not compiling. HOT 3
- ESP-Home incompatibility HOT 2
- Publish sources of the "ELEGANT_HTML" HOT 1
- Understanding how exactly OTA delivers .bin file to esp32 HOT 3
- Autoreboot HOT 3
- AsyncWebserver wont work on ElegantOTA ?
- [BUG] Build error for ESP8266 with latest version on PlatformIO HOT 6
- I managed to run ElegantOTA in AsyncMode, now what?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elegantota.