Switched to channels for communication between different parts of the code

This commit is contained in:
2023-01-09 23:50:50 +01:00
parent cf88768c15
commit 5b9d24e82f
18 changed files with 285 additions and 251 deletions

View File

@@ -75,7 +75,7 @@ fn default_ntfy_url() -> String {
"https://ntfy.sh".into()
}
#[derive(Debug, Deserialize)]
#[derive(Debug, Clone, Deserialize)]
pub struct LightSensorConfig {
#[serde(flatten)]
pub mqtt: MqttDeviceConfig,