deviceplug / btleplug

Rust Cross-Platform Host-Side Bluetooth LE Access Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disconnect is not implemented for corebluetooth

Yohannfra opened this issue · comments

Describe the bug
In corebluetooth the implementation of the disconnect function is

    async fn disconnect(&self) -> Result<()> {
        // TODO
        Ok(())
    }

Expected behavior
An actual disconnection

Actual behavior
Nothing

Thanks you for this library :)

commented

Well that's some timing, heh. I just ran into this myself when working on an iOS app that integrates btleplug. Good news is, it was an easy fix, as 80% of the event handlers and callbacks were already there, just needed glue code to integrate it with the rest of the library.

v0.10.1 will be out with a fix this week.