Reputation: 12595
our BLE device advertises regularly its change through broadcasts.
The broadcast receiver with the intent filter android.bluetooth.device.action.NAME_CHANGED is correctly called.
But it does not contain advertisement data. Is it possible to get this advertisement data from this intent or another intent ?
Thks.
Upvotes: 0
Views: 2219
Reputation: 1858
No you can not get advertisement data from broadcast intent. Rather you need to scan for ble advertisers and the scan result will contain the advertisement data.
if you want to receive the notifications for advertised data, you need to connect and register for notifications on the specific characteristic of the service that other device is advertising.
you can follow the tutorial here. BLE tutorial
Upvotes: 1