I have successfully reach my goal with two ESP32 (DEV KIT) as a wireless cable. All the above was theory (to me) until now when I put all of the hardware together and tested it.
@IanQ, this should work for you. You’ll just use a different BAUD rate.
My set up is an Aduino Nano running a MySensors Serial Gateway to Home Assistant. Normally, the Nano is plugged into a USB port of the computer which is running HA. My set up is: Nano-(ttl serial)->ESP32-(WiFi)->ESP32-(ttl serial)->Serial-to-USB–>computer–>HA with MySensors Integration.
Thanks for all your help anc comments