New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
send on WiFiClient in AsyncClient OnData problem! #44
Comments
what is send_sock() ? |
oh... you want to send data to a normal client from Async callback? tat is not possible ;) regular client uses delay and yield and those are not permitted in Async |
well, that explains it. I wanted to use two async sockets if possible but doing protocol work in two async sockets is nuts. is there an option to make use of the delay to wait until the packet arrives in the async callback? |
Better do all synch work in the loop and set flags in the async callbacks |
[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. |
[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions. |
Hello,
thanks for this library. Seems a step towards the right direction as the performance is really bad without it. However, I have trouble getting to run the function in a right way.
Scenario: I have a async client connection and a normal WiFiclient connection and want to send data received from the async client through the WiFiclient.
I have a strange behavior when sending data through WiFiClient.
I receive data from a callback function onData() and send the data through a WiFiclient socket.
The client->write function returns before hand, see blow:
thus, the function returns 0 written bytes as a return code, and the kernel does acknowledge the ":send 420"
at a later point. Here an example of a successful send in sync:
What could cause this behavior?
Best
M
The text was updated successfully, but these errors were encountered: