I am working on a flutter ble application project for Android devices. In this project, after devices are scanned and connected to a device in the list created, I want to connect to the same device automatically without scanning again. Can you help me how to do this?
Asked
Active
Viewed 824 times
1
-
It is not possible to connect to a device without scanning for it. This is not possible using the Android NDK and therefore not possible using flutter. – Michael Kotzjan Mar 18 '21 at 11:32
-
Is it possible to save the scanned device to the database and connect again? – Ibrahim Mar 18 '21 at 11:35
-
Not that I am aware of. Have a look at this https://stackoverflow.com/questions/32886725/android-4-4-bluetooth-low-energy-connect-without-scanning-for-a-ble-device – Michael Kotzjan Mar 18 '21 at 12:26
-
You need to clarify if you need help with building the Flutter UI, or help with the lower layer Bluetooth stuff. See https://stackoverflow.com/a/43482099/556495 for the latter. – Emil Mar 18 '21 at 18:20