BlePeripheralHalHci

constructor(gapDeviceName: String = "Multipaz", randomAddress: ByteArray? = null, faultConfig: BleHciFaultConfig = BleHciFaultConfig(), packetIoFactory: suspend () -> HciPacketIo = ::openDefaultHciPacketIo)

Parameters

gapDeviceName

the GAP Device Name (0x2A00) exposed by the mandatory GAP Primary Service (0x1800) on CID 0x0004 (defaults to "Multipaz").

randomAddress

optional 6-byte static random LE address in HCI little-endian byte order (where byte 5 is the MSB with top two bits set to 11), or null to generate one randomly.

faultConfig

optional BleHciFaultConfig for injecting deterministic BLE handshake faults.

packetIoFactory

factory that opens the HciPacketIo transport for each BLE session.