Advertisement

class Advertisement

Functions

manufacturerData
Link copied to clipboard
common
fun manufacturerData(companyIdentifierCode: Int): ByteArray?
Lookup the Manufacturer Specific Data by https://www.bluetooth.
js
fun manufacturerData(companyIdentifierCode: Int): ByteArray?
manufacturerDataAsDataView
Link copied to clipboard
js
fun manufacturerDataAsDataView(companyIdentifierCode: Int): DataView?
serviceData
Link copied to clipboard
common
fun serviceData(uuid: Uuid): ByteArray?
Lookup the data associated with a Service
js
fun serviceData(uuid: Uuid): ByteArray?
serviceDataAsDataView
Link copied to clipboard
js
fun serviceDataAsDataView(uuid: Uuid): DataView?
toString
Link copied to clipboard
js
open override fun toString(): String

Properties

manufacturerData
Link copied to clipboard
val manufacturerData: ManufacturerData?
The Manufacturer Specific Data, or null if none provided in the Advertisement packet.
val manufacturerData: ManufacturerData?
name
Link copied to clipboard
val name: String?
The name in the Advertisement.
val name: String?
rssi
Link copied to clipboard
val rssi: Int
The received signal strength, in dBm, of the packet received.
val rssi: Int
txPower
Link copied to clipboard
val txPower: Int?
The TX Power Level data type indicates the transmitted/radiated power level of the Advertisement packet.
val txPower: Int?
uuids
Link copied to clipboard
val uuids: List<Uuid>
A list of Service or Service Class UUIDs.
val uuids: List<Uuid>