#ruuvi #sensor #parser #protocols #ruuvitag #default

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

#1669 in Parser implementations

Download history 16/week @ 2024-01-01 62/week @ 2024-01-08 18/week @ 2024-02-12 6/week @ 2024-02-19 57/week @ 2024-02-26 103/week @ 2024-03-04 49/week @ 2024-03-11 36/week @ 2024-03-18

245 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–280KB