requestConnPriority

open fun requestConnPriority(priority: Int)

Requests the given connection priority. On Android, the connection priority is the equivalent of connection parameters. Acceptable values are:

  1. CONNECTION_PRIORITY_HIGH - Interval: 11.25 -15 ms, latency: 0, supervision timeout: 20 sec,
  2. CONNECTION_PRIORITY_BALANCED - Interval: 30 - 50 ms, latency: 0, supervision timeout: 20 sec,
  3. CONNECTION_PRIORITY_LOW_POWER - Interval: 100 - 125 ms, latency: 2, supervision timeout: 20 sec.
Calling this method with priority CONNECTION_PRIORITY_HIGH may improve file transfer speed.

Similarly to send, this method will connect automatically to the device if not connected.

Parameters