Magic sauce to make Dynamixel work on your ESP32 module.
By using a custom serial port handler, you can adapt your ESP32 module to use arbitrary/assignable pins for the chosen serial port. This handler code shows how to marry the features of ESP32 serial with Dynamixel's half-duplex protocol.