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
chipweinberger
changed the title
[Bug]: connectedDevices calls connectedSystemDevices
[Help]: connectedDevices calls connectedSystemDevices
Jan 4, 2024
Requirements
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
The text was updated successfully, but these errors were encountered: