Just to add: on the receive side, you can check E.getErrorFlags() to see if the receive buffer has overflowed (which happens if your on('data',.. hander can't process characters fast enough (at the 512 byte input buffer gets full) - but for what you're doing that's super unlikely - I'd only expect potential problems if you go far above 115200 baud or do some hugely long calculation in the data handler.
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.
Just to add: on the receive side, you can check
E.getErrorFlags()
to see if the receive buffer has overflowed (which happens if youron('data',..
hander can't process characters fast enough (at the 512 byte input buffer gets full) - but for what you're doing that's super unlikely - I'd only expect potential problems if you go far above 115200 baud or do some hugely long calculation in the data handler.