requestConnectionPriority

fun requestConnectionPriority(priority: ConnectionPriority = ConnectionPriority.HIGH)

Requests a connection priority, which is used to speed up a transfer.

The request is sent on a best-effort basis and this method returns immediately: a failure only means the transfer runs at the current connection interval. Callers that want to await the result can use Peripheral.requestConnectionPriority instead.

Parameters

priority

The requested priority, ConnectionPriority.HIGH by default.