-
Notifications
You must be signed in to change notification settings - Fork 71
Description
Hi. I am trying to create a crossplatform app that operates with a specific Bluetooth LE device. This is my first time working with Bluetooth LE anywhere and I am having some trouble.
I have so far tried the very primitive example of scanning for devices and displaying them in a list, almost literally what you can get from the readme of quick_blue:
_report_line("Manual scan started");
QuickBlue.startScan();
QuickBlue.scanResultStream.listen((result) {
_report_line("Manual scan result: $result");
});
Future.delayed(const Duration(seconds: 15), () {
QuickBlue.stopScan();
_report_line("Manual scan stopped");
});I've built it for macOS (my working laptop) and Android (target platform) and nowhere it is able to see any devices. It doesn't produce any errors or permission requests, just silently waits for timeout and stops scanning. I've tried to scan for a device that I know is working and is visible to that same phone (in Settings > Bluetooth), but it doesn't show up in the list of my app.
Do I have to request permissions myself? Maybe I miss some specific permissions in manifest? Please help me out.