ble 0.1.1

Rust library for BLE access.
Documentation
  • Coverage
  • 0%
    0 out of 8 items documented0 out of 7 items with examples
  • Size
  • Source code size: 7.52 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.18 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 27s Average build duration of successful builds.
  • all releases: 27s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • tessel/rust-ble
    5 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • tcr

rust-ble

Future cross-platform BLE library. Currently you can run this on a Linux platform, provided you have hdiutil installed:

extern crate ble;

use std::thread;
use std::time::Duration;

fn main() {
    println!("Starting scan...");

    let mut scan = ble::scan().unwrap();

    // Comment out these lines to let scan go on forever.
    thread::sleep(Duration::from_millis(3000));
    scan.stop();

    println!("Results:");
    for discovery in scan {
        println!("{:?}", discovery);
    }

    println!("... done.");
}

License

MIT or Apache-2.0, at your option.