smart-house-web: в работе

This commit is contained in:
2 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
struct PowerSocket {
power_rate: f32,
on: bool,
}
impl PowerSocket {
pub fn new(power_rate: f32, on: bool) -> Self {
Self { power_rate, on }
}
}

View File

@@ -32,3 +32,5 @@ pub fn init_logger() {
mod server;
pub use server::run_server;
mod house;