Crate aranet_types

Source
Expand description

Platform-agnostic types for Aranet environmental sensors.

This crate provides shared types that can be used by both native (aranet-core) and WebAssembly (aranet-wasm) implementations.

§Features

  • Core data types for sensor readings
  • Device information structures
  • UUID constants for BLE characteristics
  • Error types for data parsing

§Example

use aranet_types::{CurrentReading, Status, DeviceType};

// Types can be used for parsing and serialization

Re-exports§

pub use error::ParseError;
pub use error::ParseResult;
pub use types::CurrentReading;
pub use types::CurrentReadingBuilder;
pub use types::DeviceInfo;
pub use types::DeviceInfoBuilder;
pub use types::DeviceType;
pub use types::HistoryRecord;
pub use types::HistoryRecordBuilder;
pub use types::MIN_CURRENT_READING_BYTES;
pub use types::Status;
pub use uuid as ble;

Modules§

error
Error types for data parsing in aranet-types.
types
Core types for Aranet sensor data.
uuid
Bluetooth UUIDs for Aranet devices.