LinkInfo

data class LinkInfo(val mtu: Int = 23, val txPhy: Int? = null, val rxPhy: Int? = null, val intervalUnits: Int? = null, val latency: Int? = null, val supervisionTimeoutUnits: Int? = null)

The negotiated BLE link parameters for one connection, as last reported by the stack.

Surfaced so high-rate consumers (MAXI: 32 ch @ 1000 Hz) can see what the controller actually granted — a 2M PHY and a short connection interval are what keep the device's TX queue from overflowing (see GattConnection.requestHighThroughput). Every field but mtu starts null and fills in as the stack reports it; a stack that never reports a value leaves it null.

Constructors

Link copied to clipboard
constructor(mtu: Int = 23, txPhy: Int? = null, rxPhy: Int? = null, intervalUnits: Int? = null, latency: Int? = null, supervisionTimeoutUnits: Int? = null)

Properties

Link copied to clipboard
val intervalUnits: Int? = null

connection interval in 1.25 ms units, or null if not reported.

Link copied to clipboard
val latency: Int? = null

peripheral (slave) latency in connection events, or null if not reported.

Link copied to clipboard
val mtu: Int = 23

granted ATT MTU (23 until GattConnection.requestMtu succeeds).

Link copied to clipboard
val rxPhy: Int? = null

receive PHY as an Android BluetoothDevice.PHY_LE_* int, or null if not reported.

Link copied to clipboard

supervision timeout in 10 ms units, or null if not reported.

Link copied to clipboard
val txPhy: Int? = null

transmit PHY as an Android BluetoothDevice.PHY_LE_* int, or null if not reported.