Closed CallMeBossC closed 1 week ago
this is expected behavior.
you can use connectionState.skip(1)
to avoid it
this is expected behavior.
you can use .
skip(1)
to avoid it
Is there an API that can do it every time you use the Bluetooth plug-in library, it caches ah streams or subscriptions are cleared
Requirements
Have you checked this problem on the example app?
No
FlutterBluePlus Version
1.26.0
Flutter Version
3.9.12
What OS?
Android, All
OS Version
HarmonyOs4.2.0
Bluetooth Module
Not sure
What is your problem?
I use a Huawei phone to connect to a Bluetooth low energy device. I will subscribe to the device's status stream every time I connect. Whenever the connection is unsuccessful and I retry multiple connections, connectionState will return repeated device status, although I cancel the subscription to the connectionState stream after each connection.
Logs