refactor: move NetworkMode and SntpMode enums to network module

This commit is contained in:
2026-05-10 02:25:28 +02:00
parent bb4ba20f0d
commit 843c94448b
2 changed files with 32 additions and 28 deletions

View File

@@ -1 +1,19 @@
// Network stack spawning module
use alloc::string::String;
use chrono::{DateTime, Utc};
use serde::Serialize;
#[derive(Serialize, Debug, PartialEq)]
pub enum SntpMode {
OFFLINE,
SYNC { current: DateTime<Utc> },
}
#[derive(Serialize, Debug, PartialEq)]
pub enum NetworkMode {
WIFI {
sntp: SntpMode,
mqtt: bool,
ip_address: String,
},
OFFLINE,
}