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

Can't find peripherals that implement extended advertising #571

Closed
BikeBr0 opened this issue Jun 7, 2022 · 8 comments
Closed

Can't find peripherals that implement extended advertising #571

BikeBr0 opened this issue Jun 7, 2022 · 8 comments
Labels
Android Android-specific ticket bug Something isn't working

Comments

@BikeBr0
Copy link

BikeBr0 commented Jun 7, 2022

Describe the bug
Since our peripheral switched to using extended advertising, I have not been able to find the peripheral when performing a scan. It was previously working when the peripheral used standard advertising.

To Reproduce
Steps to reproduce the behavior:

  1. Scan for peripherals that implement extended advertising _ble.scanForDevices(withServices: withServices)

Expected behavior
To find the peripheral

Smartphone / tablet

  • Google Pixel 6 (Android 12)
  • Google Nexus 6P (Android 8.1.0)
  • flutter_reactive_ble: ^5.0.2
  • Flutter version 3.0.1
  • Dart version 2.17.1

Peripheral device

  • nRF52840-DK
  • Does it run a custom firmware / software: yes

Additional context
This is an android specific bug as both advertising models work on iOS. Also, peripherals using extended advertising do appear in the scan results of the nRF Connect App on the Android Pixel 6.

@BikeBr0 BikeBr0 changed the title Can't scan for peripherals using extended advertising Can't find peripherals that implement extended advertising Jun 7, 2022
@BikeBr0
Copy link
Author

BikeBr0 commented Jun 8, 2022

Further to the information provided above, we have tried using sample firmware provided with the nRF52840-DK and configured it to use Bluetooth 5 Advertising Extension. The peripheral shows up on nRF Connect on the Google Pixel 6 but not in my custom Flutter App. Is this not supported by flutter_reactive_ble?

@Taym95 Taym95 added bug Something isn't working Android Android-specific ticket labels Jun 13, 2022
@rift-labs-developer
Copy link

Im having the same problem. It seems RxAndroidBle does not support extended advertising yet (dariuszseweryn/RxAndroidBle#774 )

@danielstuart14
Copy link
Contributor

Soon RxAndroidBle will support extended advertising! Check the PR:
dariuszseweryn/RxAndroidBle#801

Here is the change flutter_reactive_ble will need:
https://github.com/danielstuart14/flutter_reactive_ble/blob/d3a27dd76b2525f4ec30ad10086bb5a9909dd4c9/packages/reactive_ble_mobile/android/src/main/kotlin/com/signify/hue/flutterreactiveble/ble/ReactiveBleClient.kt#L78

@danielstuart14
Copy link
Contributor

#594

@danielstuart14
Copy link
Contributor

@Taym95 is there any ETA for a release with the fix?

@Taym95
Copy link
Collaborator

Taym95 commented Aug 2, 2022

@danielstuart14, I will make new release

@danielstuart14
Copy link
Contributor

Any news about that?

@rift-labs-developer
Copy link

rift-labs-developer commented Sep 19, 2022

Would be great if this issue can be opened again, until a new release is out.

Edit: Until there is a new release, people who need this update can use the master branch of this repository by entering the following in your pubspec.yaml

dependency_overrides:
flutter_reactive_ble:
git:
url: https://github.com/PhilipsHue/flutter_reactive_ble
ref: master
path: packages/flutter_reactive_ble
reactive_ble_mobile:
git:
url: https://github.com/PhilipsHue/flutter_reactive_ble
ref: master
path: packages/reactive_ble_mobile
reactive_ble_platform_interface:
git:
url: https://github.com/PhilipsHue/flutter_reactive_ble
ref: master
path: packages/reactive_ble_platform_interface

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android Android-specific ticket bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants