diff --git a/mqtt/mqtt.go b/mqtt/mqtt.go index 51eb118..1fafbfd 100644 --- a/mqtt/mqtt.go +++ b/mqtt/mqtt.go @@ -191,7 +191,7 @@ func defaultCertPool(certFile string) *x509.CertPool { } func emptyPeopleAndDevices() string { - pad := PeopleAndDevices{} + pad := PeopleAndDevices{People:[]Person{}} bytes, err := json.Marshal(pad) if err != nil { mqttLogger.WithError(err).Panic()