One quick question - when receiving an unknown number of bytes how can I tell that the "stream" of data has been fully received and how many dummy bytes should I send at a time?
Or maybe I need to ask the slave device how many bytes I should expect to receive (e.g. the size of a file)
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.
One quick question - when receiving an unknown number of bytes how can I tell that the "stream" of data has been fully received and how many dummy bytes should I send at a time?
Or maybe I need to ask the slave device how many bytes I should expect to receive (e.g. the size of a file)