#bluetooth #sdp #rfcomm #spp

bluetooth-serial-port

Interact with Bluetooth devices via RFCOMM channels

8 releases (4 breaking)

0.6.0 Mar 6, 2019
0.5.1 Sep 29, 2017
0.5.0 Mar 19, 2017
0.4.1 Sep 26, 2016
0.2.0 Jun 17, 2016

#1269 in Hardware support

Download history 6/week @ 2024-11-27 58/week @ 2024-12-04 34/week @ 2024-12-11 1/week @ 2024-12-18 16/week @ 2025-01-01 1/week @ 2025-01-08 2/week @ 2025-01-29 21/week @ 2025-02-05 11/week @ 2025-02-12 22/week @ 2025-02-19 88/week @ 2025-02-26

143 downloads per month
Used in 2 crates

MIT license

47KB
1K SLoC

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

Dependencies

~2.5MB
~52K SLoC