chipweinberger / flutter_blue_plus

Flutter plugin for connecting and communicationg with Bluetooth Low Energy devices, on Android, iOS, macOS
Other
791 stars 478 forks source link

[Bug]: Frequent start/stop scan operations break the scan and return empty results #876

Closed wcoder closed 6 months ago

wcoder commented 6 months ago

Requirements

Have you checked this problem on the example app?

Yes

FlutterBluePlus Version

1.32.5

Flutter Version

3.19.6

What OS?

Android

OS Version

Android 11

Bluetooth Module

Not related yet

What is your problem?

startScan and stopScan are not synced between Dart and native layers. Android StopScan doesn't have a proper mechanism to track its scanning state.

As a result, scanResult is broken and returns empty list.

Sometimes, new scanning can't be started because it returns the error SCAN_FAILED_ALREADY_STARTED and then can't be stopped for restart scanning (fixes by restart app).

StopScan on Android looks like it is not synchronous under the hood and needs some time for all the next startScan, but FBP doesn't handle this.

See a demo of this issue on the example app:

https://github.com/boskokg/flutter_blue_plus/assets/766193/d7b8132c-37fe-445e-a416-c1b97e7f718d

Logs

App logs:

Restarted application in 1,544ms.
D/[FBP-Android](23180): [FBP] onMethodCall: flutterRestart
D/[FBP-Android](23180): [FBP] disconnectAllDevices(flutterRestart)
D/[FBP-Android](23180): [FBP] connectedPeripherals: 0
I/flutter (23180): [FBP] <setLogLevel> args: 5
D/[FBP-Android](23180): [FBP] onMethodCall: setLogLevel
I/flutter (23180): [FBP] <setLogLevel> result: true
I/flutter (23180): [FBP] <getAdapterState> args: null
D/[FBP-Android](23180): [FBP] onMethodCall: getAdapterState
I/flutter (23180): [FBP] <getAdapterState> result: {adapter_state: 4}
I/flutter (23180): [FBP] <startScan> args: {with_services: [], with_remote_ids: [], with_names: [], with_keywords: [], with_msd: [], with_service_data: [], continuous_updates: false, continuous_divisor: 1, android_scan_mode: 2, android_uses_fine_location: false}
D/[FBP-Android](23180): [FBP] onMethodCall: startScan
D/BluetoothAdapter(23180): isLeEnabled(): ON
D/BluetoothLeScanner(23180): onScannerRegistered() - status=0 scannerId=8 mScannerId=0
I/flutter (23180): [FBP] <startScan> result: true
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -47, connectable: 1, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -76, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -75, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -34, connectable: 1, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -78, connectable: 1, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -73, connectable: 1, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -74, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -34, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -46, connectable: 1, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -43, connectable: 1, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -73, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -29, connectable: 1, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -77, connectable: 1, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -91, connectable: 1, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -34, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -42, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -46, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -29, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -29, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -49, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/chatty  (23180): uid=10090(com.lib.flutter_blue_plus_example) identical 2 lines
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] <stopScan> args: null
D/[FBP-Android](23180): [FBP] onMethodCall: stopScan
D/BluetoothAdapter(23180): isLeEnabled(): ON
I/flutter (23180): [FBP] <stopScan> result: true
I/flutter (23180): [FBP] <getSystemDevices> args: null
D/[FBP-Android](23180): [FBP] onMethodCall: getSystemDevices
I/flutter (23180): [FBP] <getSystemDevices> result: {devices: []}
I/flutter (23180): [FBP] <startScan> args: {with_services: [], with_remote_ids: [], with_names: [], with_keywords: [], with_msd: [], with_service_data: [], continuous_updates: false, continuous_divisor: 1, android_scan_mode: 2, android_uses_fine_location: false}
D/[FBP-Android](23180): [FBP] onMethodCall: startScan
D/BluetoothAdapter(23180): isLeEnabled(): ON
D/BluetoothLeScanner(23180): onScannerRegistered() - status=0 scannerId=8 mScannerId=0
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] <startScan> result: true
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -76, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -36, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -42, connectable: 1, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -48, connectable: 1, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -30, connectable: 1, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -76, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -35, connectable: 1, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -71, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -76, connectable: 1, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -74, connectable: 1, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -74, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -46, connectable: 1, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -35, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -43, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -46, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] <stopScan> args: null
D/[FBP-Android](23180): [FBP] onMethodCall: stopScan
D/BluetoothAdapter(23180): isLeEnabled(): ON
I/flutter (23180): [FBP] <stopScan> result: true
I/flutter (23180): [FBP] <getSystemDevices> args: null
D/[FBP-Android](23180): [FBP] onMethodCall: getSystemDevices
I/flutter (23180): [FBP] <getSystemDevices> result: {devices: []}
I/flutter (23180): [FBP] <startScan> args: {with_services: [], with_remote_ids: [], with_names: [], with_keywords: [], with_msd: [], with_service_data: [], continuous_updates: false, continuous_divisor: 1, android_scan_mode: 2, android_uses_fine_location: false}
D/[FBP-Android](23180): [FBP] onMethodCall: startScan
D/BluetoothAdapter(23180): isLeEnabled(): ON
D/BluetoothLeScanner(23180): onScannerRegistered() - status=0 scannerId=8 mScannerId=0
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] <startScan> result: true
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -78, connectable: 1, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -76, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -76, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -50, connectable: 1, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -88, connectable: 1, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -71, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -74, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -29, connectable: 1, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -35, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -75, connectable: 1, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -35, connectable: 1, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -43, connectable: 1, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -46, connectable: 1, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -36, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -42, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -47, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/chatty  (23180): uid=10090(com.lib.flutter_blue_plus_example) identical 2 lines
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -78, connectable: 1, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -31, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -30, *** ]}
I/flutter (23180): [FBP] <stopScan> args: null
D/[FBP-Android](23180): [FBP] onMethodCall: stopScan
D/BluetoothAdapter(23180): isLeEnabled(): ON
I/flutter (23180): [FBP] <stopScan> result: true
I/flutter (23180): [FBP] <getSystemDevices> args: null
D/[FBP-Android](23180): [FBP] onMethodCall: getSystemDevices
I/flutter (23180): [FBP] <getSystemDevices> result: {devices: []}
I/flutter (23180): [FBP] <startScan> args: {with_services: [], with_remote_ids: [], with_names: [], with_keywords: [], with_msd: [], with_service_data: [], continuous_updates: false, continuous_divisor: 1, android_scan_mode: 2, android_uses_fine_location: false}
D/[FBP-Android](23180): [FBP] onMethodCall: startScan
D/BluetoothAdapter(23180): isLeEnabled(): ON
D/BluetoothLeScanner(23180): onScannerRegistered() - status=0 scannerId=8 mScannerId=0
I/flutter (23180): [FBP] <startScan> result: true
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -74, connectable: 1, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -35, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -77, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -75, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -50, connectable: 1, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -42, connectable: 1, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -75, connectable: 1, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -29, connectable: 1, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -46, connectable: 1, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -72, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -35, connectable: 1, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -35, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -42, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
I/chatty  (23180): uid=10090(com.lib.flutter_blue_plus_example) identical 1 line
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -78, connectable: 1, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -45, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -29, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -29, *** ]}
I/flutter (23180): [FBP] <stopScan> args: null
D/[FBP-Android](23180): [FBP] onMethodCall: stopScan
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -91, connectable: 1, *** ]}
D/BluetoothAdapter(23180): isLeEnabled(): ON
I/flutter (23180): [FBP] <stopScan> result: true
I/flutter (23180): [FBP] <getSystemDevices> args: null
D/[FBP-Android](23180): [FBP] onMethodCall: getSystemDevices
I/flutter (23180): [FBP] <getSystemDevices> result: {devices: []}
I/flutter (23180): [FBP] <startScan> args: {with_services: [], with_remote_ids: [], with_names: [], with_keywords: [], with_msd: [], with_service_data: [], continuous_updates: false, continuous_divisor: 1, android_scan_mode: 2, android_uses_fine_location: false}
D/[FBP-Android](23180): [FBP] onMethodCall: startScan
D/BluetoothAdapter(23180): isLeEnabled(): ON
D/BluetoothLeScanner(23180): onScannerRegistered() - status=0 scannerId=8 mScannerId=0
I/flutter (23180): [FBP] <startScan> result: true
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -73, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -76, connectable: 1, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -29, connectable: 1, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
I/chatty  (23180): uid=10090(com.lib.flutter_blue_plus_example) identical 1 line
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -35, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -46, connectable: 1, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -76, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -35, connectable: 1, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -77, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -73, connectable: 1, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -78, connectable: 1, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -49, connectable: 1, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -43, connectable: 1, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -35, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -45, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/chatty  (23180): uid=10090(com.lib.flutter_blue_plus_example) identical 1 line
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -89, connectable: 1, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/chatty  (23180): uid=10090(com.lib.flutter_blue_plus_example) identical 1 line
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] <stopScan> args: null
D/[FBP-Android](23180): [FBP] onMethodCall: stopScan
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -30, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -31, *** ]}
D/BluetoothAdapter(23180): isLeEnabled(): ON
I/flutter (23180): [FBP] <stopScan> result: true
I/flutter (23180): [FBP] <getSystemDevices> args: null
D/[FBP-Android](23180): [FBP] onMethodCall: getSystemDevices
I/flutter (23180): [FBP] <getSystemDevices> result: {devices: []}
I/flutter (23180): [FBP] <startScan> args: {with_services: [], with_remote_ids: [], with_names: [], with_keywords: [], with_msd: [], with_service_data: [], continuous_updates: false, continuous_divisor: 1, android_scan_mode: 2, android_uses_fine_location: false}
D/[FBP-Android](23180): [FBP] onMethodCall: startScan
D/BluetoothAdapter(23180): isLeEnabled(): ON
D/BluetoothLeScanner(23180): onScannerRegistered() - status=6 scannerId=-1 mScannerId=0
I/flutter (23180): [FBP] <startScan> result: true
I/flutter (23180): [FBP] <stopScan> args: null
D/[FBP-Android](23180): [FBP] onMethodCall: stopScan
D/BluetoothAdapter(23180): isLeEnabled(): ON
D/BluetoothLeScanner(23180): could not find callback wrapper
I/flutter (23180): [FBP] <stopScan> result: true
I/flutter (23180): [FBP] <getSystemDevices> args: null
D/[FBP-Android](23180): [FBP] onMethodCall: getSystemDevices
I/flutter (23180): [FBP] <getSystemDevices> result: {devices: []}
I/flutter (23180): [FBP] <startScan> args: {with_services: [], with_remote_ids: [], with_names: [], with_keywords: [], with_msd: [], with_service_data: [], continuous_updates: false, continuous_divisor: 1, android_scan_mode: 2, android_uses_fine_location: false}
D/[FBP-Android](23180): [FBP] onMethodCall: startScan
D/BluetoothAdapter(23180): isLeEnabled(): ON
D/BluetoothLeScanner(23180): onScannerRegistered() - status=6 scannerId=-1 mScannerId=0
I/flutter (23180): [FBP] <startScan> result: true
I/flutter (23180): [FBP] <stopScan> args: null
D/[FBP-Android](23180): [FBP] onMethodCall: stopScan
D/BluetoothAdapter(23180): isLeEnabled(): ON
D/BluetoothLeScanner(23180): could not find callback wrapper
I/flutter (23180): [FBP] <stopScan> result: true
I/flutter (23180): [FBP] <getSystemDevices> args: null
D/[FBP-Android](23180): [FBP] onMethodCall: getSystemDevices
I/flutter (23180): [FBP] <getSystemDevices> result: {devices: []}
I/flutter (23180): [FBP] <startScan> args: {with_services: [], with_remote_ids: [], with_names: [], with_keywords: [], with_msd: [], with_service_data: [], continuous_updates: false, continuous_divisor: 1, android_scan_mode: 2, android_uses_fine_location: false}
D/[FBP-Android](23180): [FBP] onMethodCall: startScan
D/BluetoothAdapter(23180): isLeEnabled(): ON
D/BluetoothLeScanner(23180): onScannerRegistered() - status=6 scannerId=-1 mScannerId=0
I/flutter (23180): [FBP] <startScan> result: true
I/flutter (23180): [FBP] <stopScan> args: null
D/[FBP-Android](23180): [FBP] onMethodCall: stopScan
D/BluetoothAdapter(23180): isLeEnabled(): ON
D/BluetoothLeScanner(23180): could not find callback wrapper
I/flutter (23180): [FBP] <stopScan> result: true
I/flutter (23180): [FBP] <startScan> args: {with_services: [], with_remote_ids: [], with_names: [], with_keywords: [], with_msd: [], with_service_data: [], continuous_updates: false, continuous_divisor: 1, android_scan_mode: 2, android_uses_fine_location: false}
D/[FBP-Android](23180): [FBP] onMethodCall: startScan
D/BluetoothAdapter(23180): isLeEnabled(): ON
D/BluetoothLeScanner(23180): onScannerRegistered() - status=6 scannerId=-1 mScannerId=0
I/flutter (23180): [FBP] <startScan> result: true
I/flutter (23180): [FBP] <stopScan> args: null
D/[FBP-Android](23180): [FBP] onMethodCall: stopScan
D/BluetoothAdapter(23180): isLeEnabled(): ON
D/BluetoothLeScanner(23180): could not find callback wrapper
I/flutter (23180): [FBP] <stopScan> result: true
I/flutter (23180): [FBP] <getSystemDevices> args: null
D/[FBP-Android](23180): [FBP] onMethodCall: getSystemDevices
I/flutter (23180): [FBP] <getSystemDevices> result: {devices: []}
I/flutter (23180): [FBP] <startScan> args: {with_services: [], with_remote_ids: [], with_names: [], with_keywords: [], with_msd: [], with_service_data: [], continuous_updates: false, continuous_divisor: 1, android_scan_mode: 2, android_uses_fine_location: false}
D/[FBP-Android](23180): [FBP] onMethodCall: startScan
D/BluetoothAdapter(23180): isLeEnabled(): ON
D/BluetoothLeScanner(23180): onScannerRegistered() - status=6 scannerId=-1 mScannerId=0
I/flutter (23180): [FBP] <startScan> result: true
I/flutter (23180): [FBP] <stopScan> args: null
D/[FBP-Android](23180): [FBP] onMethodCall: stopScan
D/BluetoothAdapter(23180): isLeEnabled(): ON
D/BluetoothLeScanner(23180): could not find callback wrapper
I/flutter (23180): [FBP] <stopScan> result: true
I/flutter (23180): [FBP] <startScan> args: {with_services: [], with_remote_ids: [], with_names: [], with_keywords: [], with_msd: [], with_service_data: [], continuous_updates: false, continuous_divisor: 1, android_scan_mode: 2, android_uses_fine_location: false}
D/[FBP-Android](23180): [FBP] onMethodCall: startScan
D/BluetoothAdapter(23180): isLeEnabled(): ON
D/BluetoothLeScanner(23180): onScannerRegistered() - status=0 scannerId=8 mScannerId=0
I/flutter (23180): [FBP] <startScan> result: true
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -34, connectable: 1, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -45, connectable: 1, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -46, connectable: 1, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -74, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -88, connectable: 1, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -29, connectable: 1, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -78, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -46, connectable: 1, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -73, connectable: 1, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -29, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -29, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -77, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -88, connectable: 1, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -73, connectable: 1, *** ]}
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -34, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -44, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -78, connectable: 1, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -76, *** ]}
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
D/[FBP-Android](23180): [FBP] onScanResult
I/flutter (23180): [FBP] <stopScan> args: null
D/[FBP-Android](23180): [FBP] onMethodCall: stopScan
D/BluetoothAdapter(23180): isLeEnabled(): ON
I/flutter (23180): [FBP] <stopScan> result: true
chipweinberger commented 6 months ago

thanks for filing issue.

can you fix it and open PR? thanks.

chipweinberger commented 6 months ago

fixed in 1.32.6

alisinaee commented 6 months ago

I'm using flutter_blue_plus: ^1.32.7 on android and got same bug!!

alisinaee commented 6 months ago

D/BluetoothLeScanner(12262): onScannerRegistered() - status=6 scannerId=-1 mScannerId=0 I/ViewRootImpl@efd322cMainActivity: ViewPostIme pointer 0 I/ViewRootImpl@efd322cMainActivity: ViewPostIme pointer 1 I/BluetoothAdapter(12262): STATE_ON I/BluetoothAdapter(12262): STATE_ON D/BluetoothLeScanner(12262): could not find callback wrapper I/BluetoothAdapter(12262): STATE_ON I/BluetoothAdapter(12262): STATE_ON I/BluetoothAdapter(12262): STATE_ON I/BluetoothAdapter(12262): STATE_ON D/BluetoothLeScanner(12262): Start Scan with callback D/BluetoothLeScanner(12262): onScannerRegistered() - status=6 scannerId=-1 mScannerId=0 I/ViewRootImpl@efd322cMainActivity: ViewPostIme pointer 0 I/ViewRootImpl@efd322cMainActivity: ViewPostIme pointer 1 I/BluetoothAdapter(12262): STATE_ON I/BluetoothAdapter(12262): STATE_ON D/BluetoothLeScanner(12262): could not find callback wrapper I/BluetoothAdapter(12262): STATE_ON I/BluetoothAdapter(12262): STATE_ON I/BluetoothAdapter(12262): STATE_ON I/BluetoothAdapter(12262): STATE_ON D/BluetoothLeScanner(12262): Start Scan with callback D/BluetoothLeScanner(12262): onScannerRegistered() - status=6 scannerId=-1 mScannerId=0 I/ViewRootImpl@efd322cMainActivity: ViewPostIme pointer 0 I/ViewRootImpl@efd322cMainActivity: ViewPostIme pointer 1 I/BluetoothAdapter(12262): STATE_ON I/BluetoothAdapter(12262): STATE_ON D/BluetoothLeScanner(12262): could not find callback wrapper I/BluetoothAdapter(12262): STATE_ON I/BluetoothAdapter(12262): STATE_ON I/BluetoothAdapter(12262): STATE_ON I/BluetoothAdapter(12262): STATE_ON D/BluetoothLeScanner(12262): Start Scan with callback D/BluetoothLeScanner(12262): onScannerRegistered() - status=6 scannerId=-1 mScannerId=0 I/BluetoothAdapter(12262): STATE_ON I/BluetoothAdapter(12262): STATE_ON D/BluetoothLeScanner(12262): could not find callback wrapper I/BluetoothAdapter(12262): STATE_ON I/BluetoothAdapter(12262): STATE_ON I/BluetoothAdapter(12262): STATE_ON I/BluetoothAdapter(12262): STATE_ON D/BluetoothLeScanner(12262): Start Scan with callback D/BluetoothLeScanner(12262): onScannerRegistered() - status=6 scannerId=-1 mScannerId=0 I/ViewRootImpl@efd322cMainActivity: ViewPostIme pointer 0 I/ViewRootImpl@efd322cMainActivity: ViewPostIme pointer 1 I/BluetoothAdapter(12262): STATE_ON I/BluetoothAdapter(12262): STATE_ON D/BluetoothLeScanner(12262): could not find callback wrapper I/BluetoothAdapter(12262): STATE_ON I/BluetoothAdapter(12262): STATE_ON I/BluetoothAdapter(12262): STATE_ON I/BluetoothAdapter(12262): STATE_ON D/BluetoothLeScanner(12262): Start Scan with callback D/BluetoothLeScanner(12262): onScannerRegistered() - status=6 scannerId=-1 mScannerId=0