Skip to content
This repository has been archived by the owner on Jun 29, 2024. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/v0.1.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
DerAndereAndi committed Jan 29, 2023
2 parents e661720 + 1c4acce commit ef91c9d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
38 changes: 19 additions & 19 deletions emobility/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (e *EMobilityImpl) HandleEvent(payload spine.EventPayload) {
case *model.ElectricalConnectionParameterDescriptionListDataType:
_, err := e.evElectricalConnection.RequestPermittedValueSet()
if err != nil {
logging.Log.Error("Error getting electrical permitted values:", err)
logging.Log.Debug("Error getting electrical permitted values:", err)
}

/*
Expand All @@ -140,7 +140,7 @@ func (e *EMobilityImpl) HandleEvent(payload spine.EventPayload) {
case *model.LoadControlLimitDescriptionListDataType:
_, err := e.evLoadControl.RequestLimits()
if err != nil {
logging.Log.Error("Error getting loadcontrol limit values:", err)
logging.Log.Debug("Error getting loadcontrol limit values:", err)
}

/*
Expand All @@ -158,7 +158,7 @@ func (e *EMobilityImpl) HandleEvent(payload spine.EventPayload) {
case *model.MeasurementDescriptionListDataType:
_, err := e.evMeasurement.Request()
if err != nil {
logging.Log.Error("Error getting measurement list values:", err)
logging.Log.Debug("Error getting measurement list values:", err)
}

/*
Expand Down Expand Up @@ -262,31 +262,31 @@ func (e *EMobilityImpl) evConnected(entity *spine.EntityRemoteImpl) {

// subscribe
if err := e.evDeviceClassification.SubscribeForEntity(); err != nil {
logging.Log.Error(err)
logging.Log.Debug(err)
return
}
if err := e.evDeviceConfiguration.SubscribeForEntity(); err != nil {
logging.Log.Error(err)
logging.Log.Debug(err)
return
}
if err := e.evDeviceDiagnosis.SubscribeForEntity(); err != nil {
logging.Log.Error(err)
logging.Log.Debug(err)
return
}
if err := e.evElectricalConnection.SubscribeForEntity(); err != nil {
logging.Log.Error(err)
logging.Log.Debug(err)
return
}
if err := e.evMeasurement.SubscribeForEntity(); err != nil {
logging.Log.Error(err)
logging.Log.Debug(err)
return
}
if err := e.evIdentification.SubscribeForEntity(); err != nil {
logging.Log.Error(err)
logging.Log.Debug(err)
return
}
if err := e.evLoadControl.SubscribeForEntity(); err != nil {
logging.Log.Error(err)
logging.Log.Debug(err)
return
}
// if err := util.SubscribeTimeSeriesForEntity(e.service, entity); err != nil {
Expand All @@ -300,54 +300,54 @@ func (e *EMobilityImpl) evConnected(entity *spine.EntityRemoteImpl) {

// bindings
if err := e.evLoadControl.Bind(); err != nil {
logging.Log.Error(err)
logging.Log.Debug(err)
return
}

// get ev configuration data
if err := e.evDeviceConfiguration.Request(); err != nil {
logging.Log.Error(err)
logging.Log.Debug(err)
return
}

// get manufacturer details
if _, err := e.evDeviceClassification.RequestManufacturerDetailsForEntity(); err != nil {
logging.Log.Error(err)
logging.Log.Debug(err)
return
}

// get device diagnosis state
if _, err := e.evDeviceDiagnosis.RequestStateForEntity(); err != nil {
logging.Log.Error(err)
logging.Log.Debug(err)
return
}

// get electrical connection parameter
if err := e.evElectricalConnection.RequestDescription(); err != nil {
logging.Log.Error(err)
logging.Log.Debug(err)
return
}

if err := e.evElectricalConnection.RequestParameterDescription(); err != nil {
logging.Log.Error(err)
logging.Log.Debug(err)
return
}

// get measurement parameters
if err := e.evMeasurement.RequestDescription(); err != nil {
logging.Log.Error(err)
logging.Log.Debug(err)
return
}

// get identification
if _, err := e.evIdentification.Request(); err != nil {
logging.Log.Error(err)
logging.Log.Debug(err)
return
}

// get loadlimit parameter
if err := e.evLoadControl.RequestLimitDescription(); err != nil {
logging.Log.Error(err)
logging.Log.Debug(err)
return
}

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module github.com/enbility/cemd

go 1.18

require github.com/enbility/eebus-go v0.1.5
require github.com/enbility/eebus-go v0.1.6

require (
github.com/ahmetb/go-linq/v3 v3.2.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
github.com/ahmetb/go-linq/v3 v3.2.0 h1:BEuMfp+b59io8g5wYzNoFe9pWPalRklhlhbiU3hYZDE=
github.com/ahmetb/go-linq/v3 v3.2.0/go.mod h1:haQ3JfOeWK8HpVxMtHHEMPVgBKiYyQ+f1/kLZh/cj9U=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/enbility/eebus-go v0.1.5 h1:IkRxwN+jCqQ4TCbbtjJf70iaeSUUicZZSUsMTLFtVpg=
github.com/enbility/eebus-go v0.1.5/go.mod h1:BaXy+yk3pAURDqjaaPkxqJ6nlPDcEOT7ARs85U9T6YI=
github.com/enbility/eebus-go v0.1.6 h1:T+yxpOhdfakJFd5SBon44lXkjBUyaUITS093qIpMo3Q=
github.com/enbility/eebus-go v0.1.6/go.mod h1:BaXy+yk3pAURDqjaaPkxqJ6nlPDcEOT7ARs85U9T6YI=
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
github.com/godbus/dbus/v5 v5.1.0 h1:4KLkAxT3aOY8Li4FRJe/KvhoNFFxo0m6fNuFUO8QJUk=
github.com/godbus/dbus/v5 v5.1.0/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
Expand Down

0 comments on commit ef91c9d

Please sign in to comment.