disconnect

abstract suspend fun disconnect(): Boolean

Disconnects from the peripheral.

The result should be reported by emitting ConnectionStateChanged event to events flow.

Return

True if disconnection was requested successfully; false otherwise.

Throws

If BLUETOOTH_CONNECT permission is denied.