Comments (6)
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.
@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.
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.
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_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_DEL] This stale issue has been automatically closed. Thank you for your contributions.
from asynctcp.
Related Issues (20)
- download bin file HOT 1
- File Downloading Error HOT 2
- [FR] Project Examples for PlatformIO Registry HOT 1
- error: AsyncTCP.h: No such file or directory HOT 1
- Examples from ESPAsyncTCP and update to Readme HOT 1
- Crash on multiple async reqs HOT 47
- [FR] Project Examples for PlatformIO Registry HOT 1
- espcam stream with TCP and receive UDP packets at same time HOT 1
- [FR] Project Examples for PlatformIO Registry
- Examples for the AsyncTCP HOT 1
- [ 32449][E][AsyncTCP.cpp:1313] begin(): failed to start task
- How to use the reply from onData
- AsyncTCP Conversion issue
- How to pause receiving uploads from client HOT 1
- any chance this will be published under a permissive license (e.g. Apache, MIT, MPL) HOT 6
- .pio/libdeps/esp32doit-devkit-v1/AsyncTCP/src/AsyncTCP.cpp:85:8: : 'xQueueHandle' does not name a type; HOT 2
- [FR] Project Examples for PlatformIO Registry
- Install HOT 1
- ESP32 - WLED Unhandled Exception on MQTT Connection HOT 1
- fatal error: sdkconfig.h: No such file or directory
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 asynctcp.