Reading multiple bytes
Posted: Mon Jun 11, 2012 5:55 pm
When I read a device sometimes it sends multiple bytes back (serial protocols).
But what is the best way to receive and store all the data that is send back?
Sometimes a 1-wire device sends it 64bits code, sometimes a I2C device sends 3 byte and so on.
How can I make sure I can receive them, and use the data bytes in a Flowcode?
Do I need to make a loop for the amount of bytes I will receive and make store each received byte in a variable?
Any help is welcome..
But what is the best way to receive and store all the data that is send back?
Sometimes a 1-wire device sends it 64bits code, sometimes a I2C device sends 3 byte and so on.
How can I make sure I can receive them, and use the data bytes in a Flowcode?
Do I need to make a loop for the amount of bytes I will receive and make store each received byte in a variable?
Any help is welcome..