/rn4870

Driver for the RN4870 BLE module using the embedded-hal traits.

Primary LanguageRustApache License 2.0Apache-2.0

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.