AdvertisingDataDefinition
constructor(flags: Set<AdvertisingDataFlag>? = null, completeLocalName: String? = null, shortenedLocalName: String? = null, txPowerLevel: Int? = null, serviceUuids: List<Uuid>? = null, serviceSolicitationUuids: List<Uuid>? = null, serviceData: Map<Uuid, ByteArray>? = null, manufacturerData: Map<Int, ByteArray>? = null, meshPbAdv: ByteArray? = null, meshMessage: ByteArray? = null, meshBeacon: ByteArray? = null)
Constructs an Advertising Data packet.
Parameters
flags
The set of flags in the "Flags" AD type.
completeLocalName
The value of "Complete Local Name" AD type.
shortenedLocalName
The value of "Shortened Local Name" AD type.
txPowerLevel
The "TX Power Level" AD Type.
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.
meshPbAdv
The Bluetooth Mesh PB-ADV field.
meshMessage
The Bluetooth Mesh Message field.
meshBeacon
The Bluetooth Mesh Beacon field.
Constructs an Advertising Data packet.
Parameters
raw
The raw advertising data.