BlePeripheralAddress

data class BlePeripheralAddress(val address: ByteString, val addressType: BleAddressType)

Bluetooth LE Peripheral Device Address (BD_ADDR + address type) used in BleOptions key 20 and BLE OOB AD type 0x1B (Bluetooth Core Specification Supplement section 1.16).

Constructors

Link copied to clipboard
constructor(address: ByteString, addressType: BleAddressType)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val address: ByteString

the 6-byte Bluetooth MAC address in standard big-endian byte order (e.g. 11:22:33:44:55:66 is ByteString(0x11, 0x22, 0x33, 0x44, 0x55, 0x66)).

Link copied to clipboard

Functions

Link copied to clipboard

Encodes this address to the 7-byte Bluetooth CSS section 1.16 wire representation (6-byte little-endian BD_ADDR followed by 1-byte address type).

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