#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

#1178 in Hardware support

Download history 35/week @ 2023-01-19 32/week @ 2023-01-26 35/week @ 2023-02-02 14/week @ 2023-02-09 39/week @ 2023-02-16 33/week @ 2023-02-23 17/week @ 2023-03-02 31/week @ 2023-03-09 57/week @ 2023-03-16 46/week @ 2023-03-23 40/week @ 2023-03-30 42/week @ 2023-04-06 29/week @ 2023-04-13 16/week @ 2023-04-20 41/week @ 2023-04-27 31/week @ 2023-05-04

134 downloads per month
Used in 3 crates

MIT license

46KB
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

~4–10MB
~183K SLoC