petri-lipponen-movesense / mdsflutter

Flutter plugin for MDS(Movesense Device Service) to be used for communicating with Movesense sensors.
MIT License
6 stars 8 forks source link

OnDisconnect callback is triggered multiple times #19

Closed 84rrry closed 1 month ago

84rrry commented 6 months ago

I'm facing an issue where the OnDisconnect callback is being called multiple times when the user turns off the Bluetooth manually while sensors are connected. This doesn't occur when i programmatically disconnect the sensors. I'm using `- mdsFlutter : 2.0.0

petri-lipponen-movesense commented 4 months ago

Is it possible that your app is calling connect multiple times for the same sensor? The correct use is to call it once, and then just listen to the callbacks.

petri-lipponen-movesense commented 1 month ago

If the reason was multiple connect calls, this was fixed in 2.1.0. Closing this issue. Please re-open if it happens with latest release.

84rrry commented 1 month ago

Greetings , unfortunately the issue still persist even after updating mdsflutter to latest version and upgraded the mobile mds lib to 3.27.0