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 runtime::maximize_fd_limit;
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.
macros
Internal helper macros for the Tuya protocol.
protocol
Tuya wire protocol implementation.
runtime
Global background runtime management.
scanner
UDP-based device discovery and scanning.
sync
Synchronous API wrappers for Tuya device communication.

Macros§

define_command_type
define_error_codes
define_version

Constants§

VERSION

Functions§

version