requestMTU

fun requestMTU(bytes: Int): Boolean

Request a MTU change Note: even if this method returns true, it is possible that the other device does not accept it, so Android will fallback to the previous negotiated MTU value. This will be reflected by the mtu variable.

Return

True when successfully requested MTU negotiation

See also