uart.write( returns a promise, and you're not handling the rejection of that - so that might be the Unhandled promise rejection you're not managing to handle?
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.
uart.write(
returns a promise, and you're not handling the rejection of that - so that might be theUnhandled promise rejection
you're not managing to handle?