How to handle device disconnections? #563
Replies: 3 comments 4 replies
-
Hi, I'm not sure it could help you this solution, I hope so. |
Beta Was this translation helpful? Give feedback.
-
We are using https://pub.dev/documentation/reactive_ble_platform_interface/latest/reactive_ble_platform_interface/ReactiveBlePlatform/connectionUpdateStream.html to listen to connection state changes. No complaints. |
Beta Was this translation helpful? Give feedback.
-
I'm using the example app from flutter and I'm running into an interesting issue connecting to an ESP32. When I disconnect manually from the device, everything goes well. I am able to reconnect afterwards and so on. But, when something happens, let's say I turn off the ESP32 or my phone loses the connection, I get these error in Android Studio.
The app stops running. I don't know how to handle this, what is causing it or how I can approach it. |
Beta Was this translation helpful? Give feedback.
-
Hi community,
First of all, thank you so much for this incredible library. I've used many Flutter BLE libraries and I really think this one is THE ONE.
But I come here with an important question: how can we handle device disconnections? I mean, situations like lose of power, of signal (because of limited range), etc. I'm trying to deal with this but as for today, I still couldn't get it right. Does anybody have any clue?
Thank you all in advance.
Beta Was this translation helpful? Give feedback.
All reactions