Kartik Prabhu
Kartik Prabhu

Reputation: 411

Dynamic BLE Advertisements Android

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

Answers (1)

Emil
Emil

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

Related Questions