Skip to main content

close

Function close 

Source
pub fn close(env: Env, gatt: JObject) -> Result<(), Error>
Expand description

Release the connection’s resources.

Android allows a small number of concurrent GATT clients — historically 32, far fewer in practice — and leaking them is how an app stops being able to connect at all until it is restarted.