Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Help]: Getting different device ID on iOS (same ID given in Android) #645

Closed
1 task done
kbessemer opened this issue Oct 26, 2023 · 1 comment
Closed
1 task done
Labels
help Questions, help, observations, or possible bugs

Comments

@kbessemer
Copy link

Requirements

  • I've looked at the README 'Common Problems' section

Have you checked this problem on the example app?

Yes

FlutterBluePlus Version

1.17.6

Flutter Version

3.13.7

What OS?

iOS

OS Version

17

Bluetooth Module

STM32

What is your problem?

I notice that the ID of the STM32 (peripheral) is different when fetching it on iOS versus Android, even for the same peripheral. Is there a way to get the ID/Mac address on iOS, the same way it is given on Android?

Logs

void ListenToScanResults() {
    var subscription = FlutterBluePlus.scanResults.listen((results) {
      // do something with scan results
      for (ScanResult r in results) {
        print(r);
        print('${r.device.name} found! rssi: ${r.rssi}');
        if (!deviceListTechnical.contains(r.device.id.toString())) {
          deviceListTechnical.add(r.device.id.toString());
          BuildList(r);
        }
      }
    });
  }
@kbessemer kbessemer added the help Questions, help, observations, or possible bugs label Oct 26, 2023
@chipweinberger
Copy link
Owner

no.

ios does not allow it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help Questions, help, observations, or possible bugs
Projects
None yet
Development

No branches or pull requests

2 participants