You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is the code I have to locate found devices. "FOUND A DEVICE" is never printed. Other packages and apps do find plenty of devices. I am currently on Android 10 and the quick_blue version is 0.4.1+1.
@overridevoidinitState() {
super.initState();
startScanning();
print('INIT STATE');
}
voidstartScanning() async {
final location =awaitPermission.location.status;
if (!location.isGranted) {
awaitPermission.location.request();
}
final bluetooth =awaitPermission.bluetooth.status;
if (!bluetooth.isGranted) {
awaitPermission.bluetooth.request();
}
if (awaitQuickBlue.isBluetoothAvailable() ==false) {
print('BLUETOOTH NOT AVAILABLE');
return;
}
QuickBlue.scanResultStream.listen(
(result) {
print('FOUND A DEVICE');
if (!devices.contains(result) && result.name !='') {
setState(() {
print(result.name);
devices.add(result);
});
}
},
onError: (e) {
print('ERROR: $e');
},
onDone: () =>print('DONE'),
);
QuickBlue.startScan();
print('STARTED SCANNING');
}
The text was updated successfully, but these errors were encountered:
Here is the code I have to locate found devices. "FOUND A DEVICE" is never printed. Other packages and apps do find plenty of devices. I am currently on Android 10 and the
quick_blue
version is0.4.1+1
.The text was updated successfully, but these errors were encountered: