@SergeP , you are spot on: for robust software, choosing affirmative implementation patterns are always helpful! With packages, the information wether it is the first, second, n-th and especially the last one helps. It is easy on the transmitting side, and simplifies live extremely on the receiving side... and allows even to put in a watchdog / timeout for abandoning incompletely received messages.
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.
@SergeP , you are spot on: for robust software, choosing affirmative implementation patterns are always helpful! With packages, the information wether it is the first, second, n-th and especially the last one helps. It is easy on the transmitting side, and simplifies live extremely on the receiving side... and allows even to put in a watchdog / timeout for abandoning incompletely received messages.