Skip to content

A library to collect sensory data from RuuviTag sensors.

License

Notifications You must be signed in to change notification settings

ollipa/ruuvi_reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RuuviTag sensory data reader

Crates.io Documentation Crates.io CI

A library to collect sensory data from RuuviTag sensors using Bluetooth LE. In practice just a convenience wrapper over btleplug and ruuvi_sensor_protocol crates.

Usage

A minimal example to scan sensory data and print it to stdout.

use ruuvi_reader::BleAdapter;

fn main() {
    let adapter = BleAdapter::connect().unwrap();
    let results = adapter.start_scan().unwrap();
    for result in results {
        match result {
            Ok(data) => println!("{:?}", data),
            Err(err) => eprintln!("{}", err),
        }
    }
}

About

A library to collect sensory data from RuuviTag sensors.

Topics

Resources

License

Stars

Watchers

Forks

Languages