bluetooth-serial-port

Crates.iobluetooth-serial-port
lib.rsbluetooth-serial-port
version0.6.0
sourcesrc
created_at2016-06-17 13:17:08.908235
updated_at2019-03-06 21:23:59.39839
descriptionInteract with Bluetooth devices via RFCOMM channels
homepage
repositoryhttps://github.com/Dushistov/bluetooth-serial-port
max_upload_size
id5406
size50,102
Evgeniy Dushistov (Dushistov)

documentation

README

bluetooth-serial-port Build Status 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::Evented for BtSocket { ... } // for async IO with mio

Click here for full example.

API Reference

API reference documentation is on docs.rs

Commit count: 82

cargo fmt