You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I connected several ESP32s as clients each with a static IP with a local Wifi server (my computer) using UDP.
I am wondering if there is a way to use a kind of wifi on event function which only interrupts the main task of the ESP, when the needed information has filled up the read buffer.
The udp.read() function is slowing down the main loop in irregular intervals which is problematic.
How should I approach this?
So far I only found examples for WifiEvent when the ESP is used as a server.
Should I maybe write my own function inside of the Wifi library so I can already be specific on the data that I am sending to the clients?
If yes how?
Thanks in advance and I hope I am clear enough about my problem. If not I am there for clarification.
Cheers, jh
The text was updated successfully, but these errors were encountered:
Hi, we are using UDP. At the moment we have 10 omniwheel robots steered over wifi. They were just moving a bit jerky because the motors were not moving while the udp buffer was filling.
So I will have a look at the AsyncUDP, it sounds promising.
Thanks :)
Hi again,
so I managed to get the AsyncUDP library running. I had to use Git Gui / Bash to update to the latest IDF for that, so now its v3.2-dev-1055-g3276a1316 .
The AsyncUDP server example works fine, while the client example would only broadcast data, but never received any.
But I guess that's fine for me for now. Thanks.
Hi everyone,
I connected several ESP32s as clients each with a static IP with a local Wifi server (my computer) using UDP.
I am wondering if there is a way to use a kind of wifi on event function which only interrupts the main task of the ESP, when the needed information has filled up the read buffer.
The udp.read() function is slowing down the main loop in irregular intervals which is problematic.
How should I approach this?
So far I only found examples for WifiEvent when the ESP is used as a server.
Should I maybe write my own function inside of the Wifi library so I can already be specific on the data that I am sending to the clients?
If yes how?
Thanks in advance and I hope I am clear enough about my problem. If not I am there for clarification.
Cheers, jh
The text was updated successfully, but these errors were encountered: