Skip to main content

request_connection_priority

Function request_connection_priority 

Source
pub fn request_connection_priority(
    env: Env,
    gatt: JObject,
    priority: i32,
) -> Result<bool, Error>
Expand description

BluetoothGatt.requestConnectionPriority(int).

A hint: Android asks the controller to re-negotiate the connection interval, and the peripheral has the final say. false means the request was not even sent — usually because the argument was out of range or the link is gone.