ble 0.1.1

Rust library for BLE access.
Documentation

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.