disconnect

abstract fun disconnect(): Boolean

Disconnects from the peripheral.

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

Throws

If BLUETOOTH_CONNECT permission is denied.