Skip to main content

Crate rustuya

Crate rustuya 

Source
Expand description

§Rustuya

Asynchronous Tuya Local API implementation for local control and monitoring of Tuya-compatible devices without cloud dependencies.

§Quick Start

use rustuya::sync::Device;

let device = Device::new("DEVICE_ID", "DEVICE_KEY");
device.set_value(1, true);

Re-exports§

pub use device::Device;
pub use device::DeviceBuilder;
pub use error::TuyaError;
pub use protocol::CommandType;
pub use protocol::Version;
pub use scanner::Scanner;
pub use scanner::ScannerBuilder;

Modules§

crypto
Cryptographic operations for the Tuya protocol.
device
Tuya device communication and state management.
error
Error types and result definitions for the Tuya protocol.
protocol
Tuya wire protocol implementation.
scanner
UDP-based device discovery and scanning.
sync
Synchronous API wrappers for Tuya device communication.

Constants§

VERSION

Functions§

maximize_fd_limit
Maximizes the file descriptor limit (Unix-like system only).
version