Midea/src/devices/mod.rs

10 lines
265 B
Rust
Raw Normal View History

use crate::command::Command;
2023-09-26 06:30:16 +00:00
pub mod e1;
pub trait DeviceBackend {
fn build_query(&self) -> anyhow::Result<Vec<Command>>;
fn process_message(&self, msg: &[u8]) -> anyhow::Result<Vec<u8>>;
2023-09-26 06:30:16 +00:00
fn set_attribute(&self, attribute: &str, value: &str) -> ();
}