I think having a resizable buffer is overkill and would require a few more tweaks than I'd like, but I'll bump the buffer size up to 64 since the memory does just end up coming out of JsVars, so using a few extra isn't too bad.
However, 9600 baud is ~1 ms per char - so even with 7 chars it's still 7ms you've got to be busy running JS code for before you run out of buffer,
@AkosLukacs please let me know how you get on - it may be that those most recent changes help you out.
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.
I think having a resizable buffer is overkill and would require a few more tweaks than I'd like, but I'll bump the buffer size up to 64 since the memory does just end up coming out of JsVars, so using a few extra isn't too bad.
However, 9600 baud is ~1 ms per char - so even with 7 chars it's still 7ms you've got to be busy running JS code for before you run out of buffer,
@AkosLukacs please let me know how you get on - it may be that those most recent changes help you out.