#ble #bluetooth #embedded-hal-driver

no-std rn4870

A platform agnostic driver for the RN4870 BLE module

5 unstable releases

Uses old Rust 2015

0.3.0 May 26, 2021
0.2.2 Dec 30, 2020
0.2.1 Dec 30, 2020
0.2.0 Dec 5, 2020
0.1.0 Mar 25, 2018

#1299 in Embedded development

28 downloads per month

MIT/Apache

13KB
235 lines

rn4870

Note: Maintenance Mode

Unfortunately I no longer have the time to actively develop this crate. However, I am happy to review and accept PRs. Happy to pass on ownership on crates.io -- please contact me!

Functionality

  • Switch to Command Mode
  • Switch to Data Mode
  • Set BLE name
  • Turn on default services
  • Basic transparent UART service transmit and receive
  • Hardware Reset module

TODO

  • Rework the state machine system to be more error friendly
  • Implement all the various Command Mode functionality
  • Serial read is extremely finicky and prone to overrun

Examples

  • examples/bluepill-irq.rs - shows how to configure and receive data from the module using IRQ

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~180KB