| Crates.io | bluetooth-serial-port |
| lib.rs | bluetooth-serial-port |
| version | 0.6.0 |
| created_at | 2016-06-17 13:17:08.908235+00 |
| updated_at | 2019-03-06 21:23:59.39839+00 |
| description | Interact with Bluetooth devices via RFCOMM channels |
| homepage | |
| repository | https://github.com/Dushistov/bluetooth-serial-port |
| max_upload_size | |
| id | 5406 |
| size | 50,102 |
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:
[dependencies]
bluetooth-serial-port = "0.5.1"
Important functions:
bluetooth_serial_port::scan_devices()
BtSocket::new()
BtSocket::connect()
BtSocket::connect_async()
BtSocket::read()
BtSocket::write()
impl mio::Evented for BtSocket { ... } // for async IO with mio
Click here for full example.