Take relays consumption in account

This commit is contained in:
2024-09-16 22:27:43 +02:00
parent 79b2ad12d8
commit 20bc71851d
4 changed files with 81 additions and 14 deletions

View File

@ -1,11 +1,6 @@
use std::time::Duration;
/// Name of the cookie that contains session information
pub const SESSION_COOKIE_NAME: &str = "X-session-cookie";
/// Energy refresh operations interval
pub const ENERGY_REFRESH_INTERVAL: Duration = Duration::from_secs(30);
/// Maximum time after a ping during which a device is considered "up"
pub const DEVICE_MAX_PING_TIME: u64 = 30;