Skip to main content

Crate iqos

Crate iqos 

Source
Expand description

§iqos

Rust library for controlling IQOS devices over BLE, exposing diagnostic telemetry and device controls not available through the official IQOS app.

§Layers

  1. protocol — command builders, response parsers, and typed domain values
  2. transport — transport contract shared by BLE and future USB backends
  3. transports — backend implementations (BLE via btleplug, USB reserved)

§Features

  • btleplug-support: enables the BLE backend via btleplug
  • usb-support: reserved for future USB transport (not yet implemented)

Re-exports§

pub use error::Error;
pub use error::Result;
pub use protocol::BrightnessLevel;
pub use protocol::DeviceCapability;
pub use protocol::DeviceInfo;
pub use protocol::DeviceModel;
pub use protocol::DeviceStatus;
pub use protocol::DiagnosticData;
pub use protocol::FirmwareKind;
pub use protocol::FirmwareVersion;
pub use protocol::FlexBatteryMode;
pub use protocol::FlexBatterySettings;
pub use protocol::FlexPuffSetting;
pub use protocol::ProductNumberKind;
pub use protocol::VibrationSettings;
pub use transport::Transport;
pub use transport::TransportKind;

Modules§

error
Error types and the crate-wide Result alias.
protocol
Protocol-layer command, response, and domain types. Protocol-layer command builders, response parsers, typed domain values, and BLE discovery constants for the IQOS device family.
transport
Transport abstraction shared by backend implementations.
transports
Backend transport implementations and scaffolds. Backend transport implementations.

Structs§

Iqos
Library facade placeholder for future extracted IQOS session/device API.