ctucx.git: solax2mqtt

Publish data from Solax solar inverters via MQTT

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
import std/options

type MqttConfig* = object
  host*:     string
  port*:     int
  topic*:    string
  username*: Option[string]
  password*: Option[string]

type Config* = object
  ip*: string
  password*: string
  mqtt*: MqttConfig
  updateInterval*: int