Examples
Code examples for SimpleRsBLE.
To learn how to use SimpleRsBLE, please refer to the examples provided in the repository.
The example crate includes:
- list_adapters: Print the adapters visible to SimpleRsBLE.
- scan: Scan for nearby peripherals and print advertisement details.
- connect: Scan, choose a peripheral, connect, and list services and characteristics.
- notify: Connect to a peripheral, subscribe to notifications, then unsubscribe.
Run an example from the repository root:
cargo run --manifest-path examples/simplersble/Cargo.toml --bin scanFor setup details, see Usage, Installation, and Quickstart.
