Add ControllerWsAction

This commit is contained in:
Tobias Reisinger 2023-11-27 17:21:40 +01:00
parent cb47dcda5c
commit 3b596de06f
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
10 changed files with 134 additions and 34 deletions
emgauwa-controller/src

View file

@ -7,7 +7,6 @@ use tokio::time;
pub async fn run_relay_loop(settings: Settings) {
let default_duration = Duration::from_millis(1000);
loop {
// naivetime timestamp for now
let next_timestamp = Local::now().naive_local().time() + default_duration;
time::sleep(default_duration).await;
println!("Relay loop: {}", next_timestamp)