refactor: move sntp to network module

This commit is contained in:
2026-05-17 12:24:39 +02:00
parent 5f9db41d65
commit bafc86681c
3 changed files with 120 additions and 121 deletions
+1 -1
View File
@@ -934,7 +934,7 @@ async fn try_connect_wifi_sntp_mqtt(
Ok(stack) => {
stack_store.replace(stack);
let sntp_mode: network::SntpMode = match board.board_hal.get_esp().sntp(1000 * 10, stack).await {
let sntp_mode: network::SntpMode = match network::sntp(1000 * 10, stack).await {
Ok(new_time) => {
info!("Using time from sntp {}", new_time.to_rfc3339());
let _ = board