1
2
3
4
5
6
7
8
9
10
11
import std/options
type MqttConfig* = object
host*: string
port*: int
username*: Option[string]
password*: Option[string]
type Config* = object
mqtt*: MqttConfig
serialDevice*: string
Publish data from LaCrosse sensors via MQTT
1
2
3
4
5
6
7
8
9
10
11
import std/options
type MqttConfig* = object
host*: string
port*: int
username*: Option[string]
password*: Option[string]
type Config* = object
mqtt*: MqttConfig
serialDevice*: string