Sometimes if people are used to Arduino they'll write code like while (Serial1.available()==0); - but that doesn't play well with Espruino and could cause issues if you were trying to do something like that? The best thing is to respond to data in the Serial1.on('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.
Thanks - I think it'd help to see your code.
Sometimes if people are used to Arduino they'll write code like
while (Serial1.available()==0);
- but that doesn't play well with Espruino and could cause issues if you were trying to do something like that? The best thing is to respond to data in theSerial1.on('data',...)
handler.