Replies: 3 comments 1 reply
-
|
Hi, The data received by But you can control the ack mechanism instead by only sending acks once you know the peer has received. We have made an exemple of that in ESPAsyncWebServer project with a tunnel, which is streaming back through websocket the content of a website fetched using an asynchronous client. when async client onPacket cb is called, we are sending the bytes through websocket and we ack the bytes when the ws buffer is destroyed (which means it was dequeued and sent). |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for the information. This is not sure if it will help me. My problem is that my Serial buffer can fill up. I send from ESP to Teensy. And I have a fixed buffer. If I upload too fast, it can fill up. In this case, I suffer data loss. If I can't pause the incoming data stream. That's why I want to solve it somehow. If it's not possible, then I won't force it, then I'll look for some other solution. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the feedback. I'll give it a try. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I want to do something where I want to put the processor in pause mode in the receive callback function. I want to send the incoming data via serial, but I need to check if the other side has successfully received it or if the buffer is full. And until then I need to wait for the incoming data to be processed. Thread delay is probably not a good solution. I have a question, is there a solution for this? Or can I somehow modify the lib to make this work?
#56 I read this, but I don't know if it can work in my case.
Beta Was this translation helpful? Give feedback.
All reactions