Giter Club home page Giter Club logo

Comments (11)

mpboddie avatar mpboddie commented on September 25, 2024 1

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.

JMWilton avatar JMWilton commented on September 25, 2024

Ditto. I am using Arduino IDE 2.2

from elegantota.

JMWilton avatar JMWilton commented on September 25, 2024

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.

mpboddie avatar mpboddie commented on September 25, 2024

@JMWilton, I believe the FS_end and FS_start issue may be something different. Try #143 (comment)

from elegantota.

mpboddie avatar mpboddie commented on September 25, 2024

@markeby try the instructions here, https://docs.elegantota.pro/async-mode/

This should solve your issue.

from elegantota.

ayushsharma82 avatar ayushsharma82 commented on September 25, 2024

@markeby Did you get it working?

from elegantota.

grantnorwood avatar grantnorwood commented on September 25, 2024

@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.

mathieucarbou avatar mathieucarbou commented on September 25, 2024

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.

github-actions avatar github-actions commented on September 25, 2024

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.

github-actions avatar github-actions commented on September 25, 2024

This issue was closed because it has been stalled for 5 days with no activity.

from elegantota.

birolgithub avatar birolgithub commented on September 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.