Skip to content

tessel/rust-ble

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Rust library for BLE. (Linux-only for now.)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages