Specified

constructor(connectionInterval: @Range(from = 6, to = 3200) Int, latency: @Range(from = 0, to = 499) Int, supervisionTimeout: @Range(from = 10, to = 3200) Int)

Parameters

connectionInterval

Connection interval in 1.25ms unit. Valid range is from 6 (7.5ms) to 3200 (4000ms).

latency

Connection latency. Valid range is from 0 to 499.

supervisionTimeout

Supervision timeout in 10ms unit. Valid range is from 10 (0.1s) to 3200 (32s)


constructor(connectionInterval: Duration, latency: Int, supervisionTimeout: Duration)

Creates a connection parameters using Duration for interval and timeout.

The values are converted to the units of the protocol (1.25 ms for the interval and 10 ms for the timeout), rounding down.

Parameters

connectionInterval

Connection interval.

latency

Connection latency.

supervisionTimeout

Supervision timeout.

See also