Reputation: 411
Is there any way I can use Bluetooth Low Energy to advertise data that changes? For example, incrementing a value in the advertising data every time the advertisement has been sent out?
Upvotes: 3
Views: 1392
Reputation: 18497
The only available API is https://developer.android.com/reference/android/bluetooth/le/BluetoothLeAdvertiser.html.
That API and the Bluetooth standard itself includes no way to change advertisement data on each advertisement packet. If you want to change advertisement data you have to stop the ongoing advertisement and start a new advertisement with different data.
Upvotes: 1