AutoConnect

constructor(automaticallyRequestHighestValueLength: Boolean = true, opportunistic: Boolean = false)

Parameters

automaticallyRequestHighestValueLength

If true, the manager will automatically request the highest MTU supported by the remote device immediately after establishing the connection.

opportunistic

Opportunistic connection is available from Android 17 onwards. An opportunistic GATT client does not hold a GATT connection. It automatically disconnects when no other GATT connections are active for the remote device.