Giter Site home page Giter Site logo

Comments (6)

me-no-dev avatar me-no-dev commented on May 13, 2024

did you pull the latest code? vTaskDelay is no longer in the async task. You also should keep in mind that there are other threads involved, like the wifi and LwIP threads. Suspending the task is not a very good option, because packets might arrive and get discarded (if the event queue is overflown). Please pull the latest AsyncTCP and WebServer and see how it goes

from asynctcp.

terryjmyers avatar terryjmyers commented on May 13, 2024

@me-no-dev
Thanks, I pulled the latest code for AsyncTCP and ESPAsyncWebServer. I'm not too worried about getting packets discarded, as like I said I need my project to switch to a mode that ONLY reads an ADC over SPI and writes that data out serial and/or a WiFiClient (not async).

I see that the delay was taken out, which I think basically means that the Async Library will take over full control of Core1. While this is probably fine for most people who are using these libraries as they aren't even using both cores, but I have a need to control the tasks very rigidly. Basically when the user initiates "high speed mode", I really do want to shut off the Web Server entirely, as there is no reason for them to want to access a webpage at this point and I don't want to devote any resources to this.
Would you suggest I simply use the the Webserver library (https://github.com/espressif/arduino-esp32/tree/master/libraries/WebServer) so I can decide when to process "server.handleClient();"? As I know you wrote that library as well. Or is there an issue to simply not processing "server.handleClient();" at all for a while?

from asynctcp.

me-no-dev avatar me-no-dev commented on May 13, 2024

the delay is missing but the task is made to wait for packet as long as it needs to, so instead of waiting 2ms, it might wait a minute or more if there is no packet coming, and not wait 2ms if there is one pending.

from asynctcp.

terryjmyers avatar terryjmyers commented on May 13, 2024

Is there any reason why I shouldn't change the "xTaskCreatePinnedToCore" to "xTaskCreate", and give it a lower priority, such, the same priority as my "housekeeping" task?

from asynctcp.

stale avatar stale commented on May 13, 2024

[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

from asynctcp.

stale avatar stale commented on May 13, 2024

[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions.

from asynctcp.

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.