ruuvi_reader 0.1.0

A library to collect sensory data from RuuviTag sensors.
Documentation
  • Coverage
  • 66.67%
    4 out of 6 items documented0 out of 4 items with examples
  • Size
  • Source code size: 32.81 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.55 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 1m 5s Average build duration of successful builds.
  • all releases: 1m 5s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • ollipa/ruuvi_reader
    4 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ollipa

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