refactor: move sntp to network module

This commit is contained in:
2026-05-10 02:37:39 +02:00
parent 564af23570
commit be117bf74d
3 changed files with 120 additions and 120 deletions

View File

@@ -743,7 +743,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