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.

Constructors

Link copied to clipboard
constructor(includeDeviceName: Boolean = false, includeTxPowerLevel: Boolean = false, serviceUuids: List<Uuid>? = null, serviceSolicitationUuids: List<Uuid>? = null, serviceData: Map<Uuid, ByteArray>? = null, manufacturerData: Map<Int, ByteArray>? = null)

Creates an advertising data definition.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val serviceData: Map<Uuid, ByteArray>? = null
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String