requestMtu

abstract suspend fun requestMtu(mtu: @Range(from = 23, to = 517) 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.

Return

True if MTU was requested successfully; false otherwise.

Parameters

mtu

Requested MTU value.

Throws

If BLUETOOTH_CONNECT permission is denied.