Closed Louis-Wave closed 5 months ago
I'm not sure the cause. Try to debug it further.
btw, you can connect without scanning.
the code looks correct to me. probably just a coincidence. and your devices are having problems.
// remoteIds
for (int i = 0; i < withRemoteIds.size(); i++) {
String address = withRemoteIds.get(i);
ScanFilter f = new ScanFilter.Builder().setDeviceAddress(address).build();
filters.add(f);
}
Requirements
Have you checked this problem on the example app?
Yes
FlutterBluePlus Version
1.32.2
Flutter Version
3.22.1
What OS?
Android
OS Version
Android 14
Bluetooth Module
Nordic NRF52832
What is your problem?
I save 4 remoteIds in a variable called SavedAdd, and when scanning, I try to connect when the corresponding device is identified. However, the device was discovered only when the device corresponding to SavedAdds[0] was found, and the rest, including SavedAdds[1], could not be found.
This is my code.
Here I tried to connect a device with remoteID EB:60:4C:9E:3F:10, but the App couldn't find the device.