That's odd - the data handler should work. What should happen in that case is that when the on('data' handler is added, the internal stream buffer is checked for data and if there is any, the function is queued up with it immediately.
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.
That's odd - the data handler should work. What should happen in that case is that when the
on('data'
handler is added, the internal stream buffer is checked for data and if there is any, the function is queued up with it immediately.