AdvertisingDataScope

Scope for building mock advertising data.

Inheritors

Functions

Link copied to clipboard
abstract fun CompleteLocalName(name: String)

Adds "Complete Local Name" AD type to the advertising data.

Link copied to clipboard
abstract fun Flags(vararg flags: AdvertisingDataFlag)
abstract fun Flags(bitfield: Int)

Adds "Flags" AD type to the advertising data.

Link copied to clipboard
abstract fun IncludeTxPowerLevel()

Adds the transmission power level to the advertising data.

Link copied to clipboard
abstract fun ManufacturerData(companyId: Int, data: ByteArray)

Adds the manufacturer data to the advertising data.

Link copied to clipboard
abstract fun MeshBeacon(data: ByteArray)

Sets the Mesh Beacon field in the advertising data.

Link copied to clipboard
abstract fun MeshMessage(data: ByteArray)

Sets the Mesh Message field in the advertising data.

Link copied to clipboard
abstract fun MeshPbAdv(data: ByteArray)

Sets the Bluetooth Mesh PB ADV field in the advertising data.

Link copied to clipboard
abstract fun ServiceData(shortUuid: Int, data: ByteArray)
abstract fun ServiceData(uuid: Uuid, data: ByteArray)

Adds the service data to the advertising data.

Link copied to clipboard
abstract fun ServiceSolicitationUuid(shortUuid: Int)
abstract fun ServiceSolicitationUuid(uuid: Uuid)

Adds the service UUID to the advertising data, which will be added to the AD field "Service Solicitation X bit UUIDs", depending on the UUID length.

Link copied to clipboard
abstract fun ServiceUuid(shortUuid: Int)
abstract fun ServiceUuid(uuid: Uuid)
Link copied to clipboard
abstract fun ShortenedLocalName(name: String)

Adds "Shortened Local Name" AD type to the advertising data.