Closed salex996 closed 5 months ago
look at readme common problems please
Same here, nothing returned, I had to use bondedDevices and for scanning new devices I had to redirect the user to BL screen and do it over there.
these are common issues that FBP cannot fix.
Requirements
Have you checked this problem on the example app?
Yes
FlutterBluePlus Version
flutter_blue_plus: ^1.31.8
Flutter Version
3.16.7
What OS?
Android
OS Version
14
Bluetooth Module
Google Tensor G2
What is your problem?
I followed the example but I still don't have anything in return
The code I have is the following:
Future
findDevices() async {
List devices = [];
var subscription = FlutterBluePlus.scanResults.listen((results) { if (results.isNotEmpty) { ScanResult r = results.last; // the most recently found device devices.add(r); print('${r.device.remoteId}: "${r.advertisementData.advName}" found!'); } }, onError: (e) => print(e), ); await FlutterBluePlus.startScan(timeout: const Duration(seconds: 20), continuousUpdates: true);
return devices;
Can you please help me? I do not understand why If I use the example of scanning that you have in the main page, I have nothing in devices
Thank you very much for your support
Logs