I'm trying to send a series of BLE advertisements from my Android app. Is there a way to use more of the 31-byte maximum for BLE advertisement packets for actual data? Currently, I can only use a maximum of 20 bytes for actual data. Here is my code for building the advertise data.
AdvertiseData advertiseData = new AdvertiseData.Builder()
.addServiceData(uuid,adv_packet)
.addServiceUuid(uuid)
.setIncludeTxPowerLevel(false)
.setIncludeDeviceName(false)
.build();
adv.startAdvertising(advertiseSettings, advertiseData, advertiseCallback);
Where adv_packet
can currently be a maximum of 20 bytes.
Is there a way I can increase this maximum?