21 lines
518 B
Rust
21 lines
518 B
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Debug, Serialize, Deserialize, Clone)]
|
|
pub struct ModbusCoilsConfig {
|
|
pub addr: u16,
|
|
pub write: Option<bool>,
|
|
pub mqtt: Option<bool>,
|
|
pub influxdb: Option<bool>,
|
|
pub comment: Option<String>,
|
|
}
|
|
|
|
#[derive(Debug, Serialize, Deserialize, Clone)]
|
|
pub struct ModbusRegisterConfig {
|
|
pub addr: u16,
|
|
pub r#type: Option<String>,
|
|
pub factor: Option<f64>,
|
|
pub mqtt: Option<bool>,
|
|
pub influxdb: Option<bool>,
|
|
pub comment: Option<String>,
|
|
}
|