ruuvi_reader

Crates.ioruuvi_reader
lib.rsruuvi_reader
version0.1.0
sourcesrc
created_at2020-12-25 14:50:45.854278
updated_at2020-12-25 14:50:45.854278
descriptionA library to collect sensory data from RuuviTag sensors.
homepage
repositoryhttps://github.com/ollipa/ruuvi_reader
max_upload_size
id327188
size32,818
Olli Paakkunainen (ollipa)

documentation

README

RuuviTag sensory data reader

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),
        }
    }
}
Commit count: 9

cargo fmt