1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import std/[options, tables]
type ModbusConfig* = object
host*: string
port*: int
type MqttConfig* = object
host*: string
port*: int
username*: Option[string]
password*: Option[string]
type Config* = object
modbus*: ModbusConfig
mqtt*: MqttConfig
devices*: Table[string, uint8]
updateInterval*: int