#bluetooth #ruuvi #ruuvitag

ruuvi_reader

A library to collect sensory data from RuuviTag sensors

1 unstable release

0.1.0 Dec 25, 2020

#111 in #bluetooth

MIT license

10KB
74 lines

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),
        }
    }
}

Dependencies

~13–23MB
~365K SLoC