Android Question Astream_NewData

secilcemal

Member
Licensed User
Longtime User
Hi,
I am working with B4a and with this library for some times, they are perfect tools for me to create a cnc marking machine.
What i can not figure out is;
For my application i send more than 1500 bytes to a micro controller.
What i want to impliment is the reading process into a for loop that sends the data to micro controller.
So after sending 500 byte it will wait the signal from microcontroller to go on.
When i add the line "ReceivedByte = BytesToString(Buffer, 0, Buffer.Length, "UTF8")" into the for loop
it gives me the error that "undeclared variable buffer is used before assigned any value".
Would you please tell me the proper way to use it.
Thanks.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…