use serialport::{DataBits, Parity, StopBits};

// RS-485 port configuration
pub const SERIAL_PORT: &str = "/dev/ttyNS0";
pub const BAUD_RATE: u32 = 9600;
pub const DATA_BITS: DataBits = DataBits::Eight;
pub const STOP_BITS: StopBits = StopBits::Two;
pub const PARITY: Parity = Parity::Even;
pub const TIMEOUT: u64 = 500;

// Maximum heat pump's response time = 120 seconds
pub const MAXIMUM_RESPONSE_TIME: u64 = 120;

// Heat pump configuration file name
pub const HP_CONFIG_FILE_NAME: &str = "heat_pump_config.json";
