requestMtu

abstract fun requestMtu(mtu: Int): Boolean

Requests the MTU (Maximum Transmission Unit) to be set to the given value.

The result should be reported by emitting MtuChanged event to events flow.

Parameters

mtu

Requested MTU value.

Throws

If BLUETOOTH_CONNECT permission is denied.