Hi
I'm receiving a data stream through Bluetooth which has the following format:
Header bytedata1data2data3...dataNchecksum
The header is a single byte, the data length is between 1 and 255 bytes depending on the type of message and the checksum is a single byte.
Please could you give an example of how to read and convert the stream into bytes? Is there a B4A library with function(s) or copy array method?
Connecting to data stream using an inputstream:
Stream.Initialize(Serial1.InputStream,Serial1.OutputStream, "Stream")
Sub Stream_NewData (Buffer() As Byte)
....
Thanks in advance.
I'm receiving a data stream through Bluetooth which has the following format:
Header bytedata1data2data3...dataNchecksum
The header is a single byte, the data length is between 1 and 255 bytes depending on the type of message and the checksum is a single byte.
Please could you give an example of how to read and convert the stream into bytes? Is there a B4A library with function(s) or copy array method?
Connecting to data stream using an inputstream:
Stream.Initialize(Serial1.InputStream,Serial1.OutputStream, "Stream")
Sub Stream_NewData (Buffer() As Byte)
....
Thanks in advance.