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

Expose getAdvertisingDataMap() in ScanResultAndroidAdvertisment class #607

Open
andrewowen opened this issue Dec 5, 2023 · 2 comments
Open

Comments

@andrewowen
Copy link

At the moment there is no way to access the scan records advertising data map. Creating a getter for this would be beneficial to find Advertisements with specific data

@twyatt

This comment was marked as outdated.

@twyatt
Copy link
Member

twyatt commented Dec 16, 2023

I can't seem to find an equivalent API in Core Bluetooth. I have no issues with exposing this in Kable (Android-only) but I would like to better understand its usage/purpose, as it may help to create a friendly API for Kable consumers.

For example: are the values from this map used to process other data (from another function call)? If so, then perhaps we could combine the two functions to return easily consumable structured data. It appears to be related to BLE Assigned Numbers: 2.3 Common Data Types?

Or, is this used in some other way? I have never personally needed this function, so I'm not familiar with it. Its absence (at least in my quick search) from the Core Bluetooth APIs makes it seem fairly specialized?

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

2 participants