Blue2Serial icon indicating copy to clipboard operation
Blue2Serial copied to clipboard

Fix issue #15 Read part of the barcode

Open Srinivas-Singadi opened this issue 7 years ago • 2 comments

I will remove the rest of the configuration part and the jitpack stuff once you respond to the pull request or merge my part of the code.

I got strange issue of frames not receiving properly for every 5 milliseconds from an arduino type of a device.

the desired strings were broken into parts and were sent into next line i fixed the issue by making it to work properly by adding arraylist and wait params to get the whole part of string.

Srinivas-Singadi avatar Jan 30 '18 10:01 Srinivas-Singadi

Hi @srinivas1993, thanks for raising this issue. However, I think this is similar to #2 where I believe that CR (the 0x0D in your PR if I understand correctly) or other delimiters should be handled in your own application code.

MacroYau avatar Feb 01 '18 10:02 MacroYau

I have another solution. You need to stop collecting into the byte array cache when the last read byte is 0x0D or more than 100ms have passed since the last bytes read.

Yanovsky avatar Jul 06 '22 10:07 Yanovsky