-
Notifications
You must be signed in to change notification settings - Fork 590
Open
Description
Hello everyone, I found a problem in my application.
My application is android launcher. When i startup
device.establishConnection(false).flatMapSingle { connection ->
connection.readCharacteristic(BATTERY_SERVICE_CHARACTERISTIC).map {
it.getOrNull(0)?.toInt() ?: -1
}
}For receiving a battery percent.
My question is about reconnection device after reboot. Using case like:
- Connect device (start use)
- Reboot android
- Wait 30-40 seconds after launcher start (on this moment i run code (for battery percent), i think android understand, that device is unavailable and close connection). Press any button in BLE device (for reconnection)
- Device doesn't reconnect (but i see it in bounded list)
i try to find solution in aosp but i don't sure (may be i need to wait device by autoConnect flag)
in aosp 7/9/11 it's work correctly.
I kindly ask you to help me with searching solution
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels