AdvertisingDataDefinition
class AdvertisingDataDefinition(val includeDeviceName: Boolean = false, val includeTxPowerLevel: Boolean = false, serviceUuids: List<Uuid>? = null, val serviceSolicitationUuids: List<Uuid>? = null, val serviceData: Map<Uuid, ByteArray>? = null, val manufacturerData: Map<Int, ByteArray>? = null) : AdvertisingDataDefinition
Advertising data packet container for Bluetooth LE advertising.
This represents the data to be advertised in the Advertising Data as well as the Scan Response data.
Parameters
includeDeviceName
Whether the device name should be included in advertise packet.
includeTxPowerLevel
Whether the TX power level should be included in the advertising packet.
serviceUuids
A list of service UUID to advertise.
serviceSolicitationUuids
Service solicitation UUID to advertise data.
serviceData
Service data to be advertised.
manufacturerData
Manufacturer specific data. The keys should be the Company ID as defined in Assigned Numbers.