Feature request: access to advertised data
See original GitHub issueWhile debugging my BLE Android app, I felt the need to access advertised data (to check that my BLE server app was advertising correctly). Unless I’m wrong, there’s not much about this in the library.
For example, getServices()
allows to get the list of services available from a connected peripheral, but it would be nice to also have a way to get the list of advertised/exposed services from a not-connected peripheral (returned by onDiscoveredPeripheral()
).
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Enable Remarketing and Advertising Reporting Features in ...
In the Property column, click Tracking Info, then click Data Collection. Under Data Collection for Advertising Features: To enable Remarketing, set Remarketing ...
Read more >If an app asks to track your activity - Apple Support
If you choose Ask App Not to Track, the app developer can't access the system advertising identifier (IDFA), which is often used to...
Read more >Savio: Track feature requests and organize customer feedback
Track feature requests and product feedback from your support and NPS tools, CRM, and Google Docs. Prioritize your roadmap with data.
Read more >Let Users Request Access to Content and Projects - Tableau
When someone requests access, the owner who controls permissions for that content (either at the project or workbook level) receives an email with...
Read more >Feature Request - Enterprise Data Erasure
Product(s) you require support for... *. XErase; XImage; EraseSURE; Octane Erasure Appliance; Portable Erasure Appliance; Ultra Portable Erasure Appliance
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The advertised data is also available and encapsulated by the ScanResult object. You get this along with the peripheral object:
onDiscoveredPeripheral(@NotNull BluetoothPeripheral peripheral, @NotNull ScanResult scanResult)
The ScanResult is a plain Android object, see ScanResult
The information about which services are advertised is in the ScanRecord:
List<ParcelUuid> serviceUUIDs = scanResult.getScanRecord().getServiceUuids();
My point exactly: it sounds obvious at first but it’s not, as
getServices()
could have returned the advertised services of a non-connected peripheral.“Not handling” and “handling gracefully” are two different things. The user is informed of a connection drop through
onPeripheralDisconnected()
, and I think it should be his choice to manage the exceptions or not.