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]: connectedDevices calls connectedSystemDevices #643

Closed
1 task done
manuel75o opened this issue Oct 25, 2023 · 2 comments
Closed
1 task done

[Help]: connectedDevices calls connectedSystemDevices #643

manuel75o opened this issue Oct 25, 2023 · 2 comments
Labels
help Questions, help, observations, or possible bugs

Comments

@manuel75o
Copy link
Contributor

Requirements

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

Have you checked this problem on the example app?

No

FlutterBluePlus Version

1.20.7

Flutter Version

3.13.5

What OS?

iOS

OS Version

IOS 17.0.1

Bluetooth Module

esp32

What is your problem?

connectedDevices calls connectedSystem devices in background and shows them:

Provider:
final connectedDevicesStreamProvider = StreamProvider((ref) async* { final connectedDevicesTemp = Stream.periodic(const Duration(seconds: 5)) .asyncMap((_) => FlutterBluePlus.connectedDevices); await for (var devices in connectedDevicesTemp) { final connectedDevices = devices.toSet().toList(); yield connectedDevices; } });

final connectedDevices = ref.watch(connectedDevicesStreamProvider);

Logs

flutter: [FBP] <getConnectedSystemDevices> args: null
flutter: [FBP] <getConnectedSystemDevices> result: {devices: [{platform_name: null, remote_id: XXX}, {platform_name: Apple Watch von Manuel, remote_id: XXX}]}


flutter: [FBP] <getConnectedSystemDevices> args: null
flutter: [FBP] <getConnectedSystemDevices> result: {devices: [{platform_name: ESP1, remote_id: 2EC51AE9-89E0-F017-2C3E-97C558E5B4CE}, {platform_name: null, remote_id: XXX}, {platform_name: Apple Watch von Manuel, remote_id: XXX}]}
@manuel75o manuel75o added the bug Something isn't working label Oct 25, 2023
@chipweinberger
Copy link
Collaborator

chipweinberger commented Oct 25, 2023

i don't think you've properly updated

getConnectedSystemDevices is gone

@manuel75o
Copy link
Contributor Author

U are right, sorry for the inconvenience, had a dependencie problem.

@chipweinberger chipweinberger changed the title [Bug]: connectedDevices calls connectedSystemDevices [Help]: connectedDevices calls connectedSystemDevices Jan 4, 2024
@chipweinberger chipweinberger added help Questions, help, observations, or possible bugs and removed bug Something isn't working labels Jan 4, 2024
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