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

Commit fb482ef

Browse files
committed
Set fake measurementId for UCLPCServer
This is required for the KEO Stack to actually send limits. But it does not make sense when the CEM does not have a ElectricalConnection server which it can only have when having a MPC server.
1 parent 0bdd6a1 commit fb482ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

uclpcserver/uclpc.go

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ func (e *UCLPCServer) AddFeatures() {
7171
LimitType: eebusutil.Ptr(model.LoadControlLimitTypeTypeSignDependentAbsValueLimit),
7272
LimitCategory: eebusutil.Ptr(model.LoadControlCategoryTypeObligation),
7373
LimitDirection: eebusutil.Ptr(model.EnergyDirectionTypeConsume),
74+
MeasurementId: eebusutil.Ptr(model.MeasurementIdType(0)), // This is a fake Measurement ID, as there is no Electrical Connection server defined, it can't provide any meaningful. But KEO requires this to be set :(
7475
Unit: eebusutil.Ptr(model.UnitOfMeasurementTypeW),
7576
ScopeType: eebusutil.Ptr(model.ScopeTypeTypeActivePowerLimit),
7677
},

0 commit comments

Comments
 (0)