Rust library for interacting with the Bluetooth stack via RFCOMM channels.
This library currently only works on Linux/BlueZ. You can find it on crates.io.
Cargo.toml:
toml
[dependencies]
bluetooth-serial-port = "0.5.1"
Important functions:
```rust bluetoothserialport::scandevices() BtSocket::new() BtSocket::connect() BtSocket::connectasync() BtSocket::read() BtSocket::write()
impl mio::Evented for BtSocket { ... } // for async IO with mio ```
Click here for full example.