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

Add connectable property to BLE Scan result #812

Open
mrx23dot opened this issue Mar 12, 2024 · 4 comments
Open

Add connectable property to BLE Scan result #812

mrx23dot opened this issue Mar 12, 2024 · 4 comments

Comments

@mrx23dot
Copy link

mrx23dot commented Mar 12, 2024

Is your feature request related to a problem?

Asking for near by BLE devices don't tell me if they are connectable or not:

AT+BLEINIT=1
AT+BLESCANPARAM=1,0,0,1480,1480
AT+BLESCAN=1,3

  +BLESCAN:"2a:47:c4:d5:63:e0",-78,1eff060001092022c46a7a8bda0a542bd5141db069a0ad42393763cf091bae,,1
  +BLESCAN:"34:64:f4:2b:4b:97",-63,13ff0600010f210a1acca4f60ae0534330303934,,1
  +BLESCAN:"52:83:e4:05:8f:d9",-98,0303f3fe,,1

based on discussion in comments here:
https://stackoverflow.com/questions/28467590/detecting-whether-a-ble-device-is-connectable-on-android

"connectable" status doesn't come from Advertisement Flags but from environment (ESP AT).

Describe the solution you'd like.

is connectable
+BLESCAN:"52:83:e4:05:9f:d9",-98,0303f3fe,,1,yes
+BLESCAN:"52:83:e4:05:9f:d9",-98,0303f3fe,,1,no

or in number

Describe alternatives you've considered.

only other way to test is trying to connect but that's VERY slow.

Additional context.

version

AT+GMR
AT+GMR
AT version:3.2.0.0(s-ec2dec2 - ESP32 - Jul 28 2023 07:05:28)
SDK version:v5.0.2-376-g24b9d38a24-dirty
compile time(6118fc22):Jul 28 2023 10:14:50
Bin version:v3.2.0.0(PICO-D4)

@mrx23dot
Copy link
Author

I have seen Advertisement Flag 0x1A being connectable an also nonconnectable in nRF android app.
So I'm sure connectability is not stored in Advertisement Flags.

@mrx23dot
Copy link
Author

You can have a connectable device without any included advertised Flags.

@ustccw
Copy link
Collaborator

ustccw commented May 17, 2024

@Luxin812 PTAL

@Luxin812
Copy link
Contributor

@mrx23dot , thank you for your good idea. We will consider adding it to our future feature development plans.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants