ThanosFisherman / BlueFlow

Android Bluetooth classic API wrapped in Coroutines Flow.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Read Flow consumed without a consumer

picobulgarelli opened this issue · comments

Hello dev, this is not really an issue and maybe I didn’t understand correctly the nature of the channelFlow used in the readByteArrayStream function. In few words I created a Service to share the socket between activities but switching from an activity to another I loose some message. I tried to write on stackoverflow but it seems that no one knows your lib. Take a look here to check the code I wrote: https://stackoverflow.com/questions/66965201/i-loose-data-from-bluetooth-moving-between-activities-and-using-services?r=SearchResults

Anyway a read example would be appreciated.
Thank you

Hello, sorry about the incomplete docs. I made this lib to support one of my projects. Never thought there would be interest from other developers.

Please give me some time to look into your issue and try to post back. Keep in mind that many Bluetooth devices need some sort of queueing + delay mechanism that this lib does not support.