Reedyuk / blue-falcon

A Bluetooth kotlin multiplatform "Cross-Platform" library for iOS and Android
https://bluefalcon.dev
Apache License 2.0
340 stars 45 forks source link

Android - occasionally after connect is done, library calls didDisconnect instead of didConnect #52

Closed felislynx-silae closed 4 years ago

felislynx-silae commented 4 years ago

Currently i'm testing integration with external device so i'm performing connection a lot of times. Currently i would say that once every 4 tries after i'm connected to peripheral, library calls didDisconnect (peripheral states that i've connected successfully).

felislynx-silae commented 4 years ago

Self fixed: stopLEScan need to be called after didConnect if called before, this happens