Which after execution, should always print > as a newline?
Yes, ish. Although in a way if you really do need to mark the end of what you're sending then just adding a print("END")/similar to the end of the line might be best.
The reason is, if you had some other code running in an event like setInterval then if that executed and printed something then that could print code before you received the >. Maybe if you have control of everything you can be sure that doesn't happen though
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.
Yes, ish. Although in a way if you really do need to mark the end of what you're sending then just adding a
print("END")
/similar to the end of the line might be best.The reason is, if you had some other code running in an event like
setInterval
then if that executed and printed something then that could print code before you received the>
. Maybe if you have control of everything you can be sure that doesn't happen though