#parser #sensor #ruuvi

no-std ruuvi-sensor-protocol

Ruuvi sensor protocol parser implementation

9 releases (5 breaking)

0.6.1 Sep 11, 2022
0.6.0 Sep 11, 2022
0.5.0 Aug 21, 2021
0.4.1 Jan 5, 2020
0.1.1 Aug 8, 2018

#1083 in Parser implementations

Download history 24/week @ 2024-06-17 5/week @ 2024-06-24 18/week @ 2024-07-01 3/week @ 2024-07-08 8/week @ 2024-07-15 12/week @ 2024-07-22 87/week @ 2024-07-29 8/week @ 2024-08-05 56/week @ 2024-08-12 9/week @ 2024-08-26 32/week @ 2024-09-09 21/week @ 2024-09-16 40/week @ 2024-09-23 84/week @ 2024-09-30

177 downloads per month
Used in 3 crates

MIT license

53KB
1K SLoC

ruuvi-sensor-protocol-rs Crates.io Docs.rs Crates.io

Ruuvi sensor protocol parser implementation

Requirements

  • Rust >= 1.60
    • This crate can be compiled without std by disabling default features

Crate Features

  • std (default) enables features that depend on std crate
  • gateway adds parsers for Ruuvi Gateway payload formats, adds hex, serde and serde_json dependencies and requires alloc crate from the standard library

Documentation

Docs are available online at docs.rs. They can be built from source with cargo doc. Examples are included in the docs.

Changes

0.6.1

  • Build documentation with all features for docs.rs

0.6.0

  • Requires 2021 Edition (Rust >= 1.60)
  • Support for parsing Ruuvi Gateway MQTT message payloads
    • It is disabled by default, but can be enabled with gateway feature

0.5.0

  • Requires Rust >= 1.48
  • Adds Clone trait for SensorValues and ParseError
  • Use AsRef<[u8]> as type bound for value in from_manufacturer_specific_data

0.4.1

  • Corrected ZERO_CELSIUS_IN_MILLIKELVINS constant

0.4.0

0.3.0

  • Requires 2018 Edition (Rust >= 1.31)
  • Adds option to compile without std create

License

This project is licensed under MIT license.

Dependencies

~0–305KB