edufolly / flutter_bluetooth_serial

A basic Flutter Bluetooth Serial
MIT License
476 stars 455 forks source link

Device gets disconnected when navigated to next screen and connects again when back on the screen, Is there any solution to keep it conected always? #195

Open MohsinP07 opened 1 year ago

MohsinP07 commented 1 year ago

I am trying to connect my app with HC 05 Adapter, and I am successfully able to connect the adapter. But the issue is that in app I check the availability in one screen and connect to device and receive data. till here everything is ok but when I navigate to other screen the device disconnects and when I come back on connection screen the device reconnects after checking availability. Is there any solution to keep it connected even when changed the screen.