kable
kable copied to clipboard
Expose getAdvertisingDataMap() in ScanResultAndroidAdvertisment class
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
Good call out on this being missing. I'll look into if other platforms have similar support, and decide if it will be Android-only or common. I'll try to find some time soon to expose that API. Thanks for the issue report!
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?