Closed wjgso closed 1 year ago
My version is com.github.mik3y:usb-serial-for-android:3.3.0
@kai-morich Do you have any examples on how to implement any of the approaches you've described with event driven data (onNewData)? My application is supposed to receive data at random points in time from a microcontroller and handle it accordingly but I just can't figure out how to implement this behavior with your library. Thanks.
Thank you for your reply.
Hello!As the title,When I use this “onNewData” to receive data, I often receive incomplete data, and the missing data will enter “onNewData” again.
for example: I will always receive data, but the data will be like this. data = "10089"
first receive ---> "10089" second receive ---> "1008" third receive ---> "910089" Sometimes it is lost, sometimes it is normal
My current processing method is splicing. I would like to ask whether this is a problem with the USB or the library. Looking forward to your reply