Add DeepSleep log message and improve formatting consistency

- Introduced `DeepSleep` log message for tracking system sleep events.
- Updated MQTT topic to use `/state` instead of `/firmware/state`.
- Improved code formatting for enhanced readability and maintainability.
This commit is contained in:
2026-04-17 00:31:21 +02:00
parent 3157ba7e76
commit 6b4fd3f701
2 changed files with 50 additions and 11 deletions

View File

@@ -319,6 +319,8 @@ pub enum LogMessage {
Trace,
#[strum(serialize = "Parsing error reading message")]
UnknownMessage,
#[strum(serialize = "Going to deep sleep for ${number_a} minutes")]
DeepSleep,
}
#[derive(Serialize)]