#bluetooth #rfcomm #sdp #spp

bluetooth-serial-port-async

Interact with Bluetooth devices via RFCOMM channels

4 releases

0.6.3 Dec 28, 2020
0.6.2 Dec 28, 2020
0.6.1 Oct 18, 2020
0.6.0 Oct 10, 2020

#1360 in Hardware support

Download history 35/week @ 2023-10-29 41/week @ 2023-11-05 34/week @ 2023-11-12 39/week @ 2023-11-19 49/week @ 2023-11-26 28/week @ 2023-12-03 25/week @ 2023-12-10 27/week @ 2023-12-17 38/week @ 2023-12-24 40/week @ 2023-12-31 42/week @ 2024-01-07 37/week @ 2024-01-14 41/week @ 2024-01-21 42/week @ 2024-01-28 38/week @ 2024-02-04 54/week @ 2024-02-11

176 downloads per month
Used in 4 crates

MIT license

48KB
1K SLoC

Rust library for interacting with the Bluetooth stack via RFCOMM channels.

This library only works on Linux/BlueZ. You can find it on

You can use async_std to read and write async

crates.io.

Cargo.toml:

[dependencies]
bluetooth-serial-port-async = "0.5.1"

Important functions:

bluetooth_serial_port::scan_devices()
BtSocket::new()
BtSocket::connect()
BtSocket::connect_async()
BtSocket::get_stream() // Use for read/write. Only call it once.

Click here for a full example.

API Reference

API reference documentation is on docs.rs


lib.rs:

Interact with Bluetooth devices via RFCOMM channels.

Dependencies

~7–17MB
~220K SLoC