Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 893 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 893 Bytes

bluetooth-serial-port Build Status

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::event::Source for BtSocket { ... } // for async IO with mio

Click here for full example.

API Reference

API reference documentation is on docs.rs