missing packets? that's very strange and should not happen. However you mean that you would really not mind missing complete lines from the output if it was sent line by line?
I don't know if there is something like Bluetooth.flush() or some character to write that would do it, maybe not. If not then splitting the loop so it goes to idle loop after each line could help. Like scheduling each write line via setTimeout
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.
missing packets? that's very strange and should not happen. However you mean that you would really not mind missing complete lines from the output if it was sent line by line?
I don't know if there is something like Bluetooth.flush() or some character to write that would do it, maybe not. If not then splitting the loop so it goes to idle loop after each line could help. Like scheduling each write line via setTimeout
can you try something like