dfrankland / bluster

A Rust crate for implementing BLE (Bluetooth Low Energy) peripherals
https://crates.io/crates/bluster
MIT License
111 stars 33 forks source link

wishlist: example program #26

Open chrysn opened 4 years ago

chrysn commented 4 years ago

For someone who is having a brief look at this crate to get an impression of whether it is suitable (in my case, for experimentation with web browsers' BLE communication), it would help a lot to have a short demo in (eg. just exporting one static value and a changable one via GATT, where changes get printed to stdout). Would you consider adding an example in that style to the crate?

dfrankland commented 4 years ago

Hello! Yes, absolutely I would.

This was very much an experiment when I first started, but I switched to other projects before really improving things in this crate.

For a quick example, check the peripheral test: https://github.com/dfrankland/bluster/blob/master/tests/peripheral.rs

For a more advanced example, see: https://github.com/dfrankland/bleboard