Add basic OCPP support (#395)

This commit is contained in:
andig 2020-11-21 16:49:59 +01:00 • committed by GitHub
parent 9bd8754b85
commit 29ea3c6549
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 618 additions and 130 deletions

View file

@ -52,8 +52,8 @@ func configureMQTT(conf provider.MqttConfig) {
}
// setup HEMS
func configureHEMS(conf string, site *core.Site, cache *util.Cache, httpd *server.HTTPd) hems.HEMS {
hems, err := hems.NewFromConfig(conf, site, cache, httpd)
func configureHEMS(conf typedConfig, site *core.Site, cache *util.Cache, httpd *server.HTTPd) hems.HEMS {
hems, err := hems.NewFromConfig(conf.Type, conf.Other, site, cache, httpd)
if err != nil {
log.FATAL.Fatalf("failed configuring hems: %v", err)
}