When you do Serial.setup you should be able to specify a cts pin. I'm not 100% sure it works on ESP32, but it should: http://www.espruino.com/Reference#l_Serial_setup
Serial.setup
cts
Otherwise, it might make sense to set up some kind of serial protocol with a command and acknowledgement?
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
When you do
Serial.setup
you should be able to specify acts
pin. I'm not 100% sure it works on ESP32, but it should: http://www.espruino.com/Reference#l_Serial_setupOtherwise, it might make sense to set up some kind of serial protocol with a command and acknowledgement?