Direct

constructor(timeout: Duration = 10.seconds, retry: Int = 3, retryDelay: Duration = 300.milliseconds, vararg preferredPhy: Phy, automaticallyRequestHighestMtu: Boolean = false)

Connection options for direct connection.

Direct connection has a maximum timeout which depends on the device manufacturer and is usually 30 seconds or less. It may be shortened using the timeout parameter.

Parameters

timeout

The connection timeout. 0 to default to system timeout. Default timeout is 10 seconds.

retry

The number of connection retries. Value N indicates N+1 connection attempts.

retryDelay

The delay between connection retries, defaults to 300 ms.

preferredPhy

The preferred PHY for connections to remote LE device.

automaticallyRequestHighestMtu

If true, the manager will automatically request the highest MTU supported by the remote device immediately after establishing the connection.


constructor(timeout: Duration = 10.seconds, retry: Int = 2, retryDelay: Duration = 300.milliseconds, preferredPhy: List<Phy> = listOf(Phy.PHY_LE_1M), automaticallyRequestHighestValueLength: Boolean = false)