BleCentralHalHci

constructor(gapDeviceName: String = "Multipaz", randomAddress: ByteArray? = null, scanInterval: Duration = 60.milliseconds, scanWindow: Duration = 30.milliseconds, connectTimeout: Duration = 3.seconds, packetIoFactory: suspend () -> HciPacketIo = ::openDefaultHciPacketIo)

Parameters

gapDeviceName

the GAP Device Name (0x2A00) reported if the connected peripheral queries the central's GAP server 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.

scanInterval

the LE scan interval (2.5 ms to 10.24 s, defaults to 60.milliseconds).

scanWindow

the LE scan window (2.5 ms to 10.24 s, must be <= scanInterval, defaults to 30.milliseconds).

connectTimeout

per-attempt timeout for HCI_LE_Create_Connection before cancelling and retrying (defaults to 3.seconds).

packetIoFactory

factory that opens the HciPacketIo transport for each BLE session.