refactor: move Solar struct to mqtt module

This commit is contained in:
2026-05-05 20:49:39 +02:00
parent 1151d099cf
commit 53819484fb
2 changed files with 7 additions and 7 deletions

View File

@@ -27,6 +27,12 @@ pub struct PumpInfo {
pub min_current_ma: u16,
}
#[derive(Serialize, Debug, PartialEq)]
pub struct Solar {
pub current_ma: u32,
pub voltage_ma: u32,
}
static MQTT_CONNECTED_EVENT_RECEIVED: AtomicBool = AtomicBool::new(false);
static MQTT_ROUND_TRIP_RECEIVED: AtomicBool = AtomicBool::new(false);
pub static MQTT_STAY_ALIVE: AtomicBool = AtomicBool::new(false);