In this video I used TCP sockets. I have since switched to UDP sockets with no buffering. Results are similarly smooth but servos are more responsive.
I use the following setup:
- SparkFun ESP32 Thing
- MG92B servos
- ESP32 is an access point (creates a wifi network) and a UDP socket server
- gamepad communicates with the phone over bluetooth
- phone joins the wifi network and sends data to the UDP socket
- I need only one-way communication