mirror of
				https://github.com/csehviktor/status-monitor.git
				synced 2025-08-08 18:06:14 +02:00 
			
		
		
		
	use shared constant for message interval
This commit is contained in:
		@@ -6,6 +6,7 @@ use crate::metrics::Metrics;
 | 
			
		||||
pub mod metrics;
 | 
			
		||||
 | 
			
		||||
pub const MQTT_TOPIC: &str = "system/metrics";
 | 
			
		||||
pub const MQTT_SEND_INTERVAL: u64 = 5;
 | 
			
		||||
 | 
			
		||||
#[derive(Debug, Serialize, Deserialize)]
 | 
			
		||||
pub struct StatusMessage<'a> {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user