I want to receive 16bit word data that are sent from a microcontroller in binary format. The binary stream would look like MSBLSB...MSBLSBMSBLSB....CHRLF (a sequence of 16bit words). How could I receive and decode the stream to an (integer) array in B4A?
At present I am transmitting each word as ascii value and receiving it using readline. The reduction of transmitted characters by sending binary data would be enormous.
Thanks, positrom2
At present I am transmitting each word as ascii value and receiving it using readline. The reduction of transmitted characters by sending binary data would be enormous.
Thanks, positrom2