Another thing that's strange here is that - at least at 115200 baud - on ESP32 side, the on('data') callback is called only once, with the whole blob of data, rather than once per char...
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.
Hmm. Per this page: http://www.espruino.com/ESP32 UART2 is on 16 and 17... (and it works beautifully on these pins)
So something isn't making sense here...
Another thing that's strange here is that - at least at 115200 baud - on ESP32 side, the on('data') callback is called only once, with the whole blob of data, rather than once per char...