Skip to content

Newbie needs help #151

@genee19

Description

@genee19

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions