@@ -78,6 +78,17 @@ func (e *UCLPCServer) AddFeatures() {
78
78
}
79
79
f .SetData (model .FunctionTypeLoadControlLimitDescriptionListData , loadControlDesc )
80
80
81
+ loadControl := & model.LoadControlLimitListDataType {
82
+ LoadControlLimitData : []model.LoadControlLimitDataType {
83
+ {
84
+ LimitId : eebusutil .Ptr (model .LoadControlLimitIdType (limitId )),
85
+ IsLimitChangeable : eebusutil .Ptr (true ),
86
+ IsLimitActive : eebusutil .Ptr (false ),
87
+ },
88
+ },
89
+ }
90
+ f .SetData (model .FunctionTypeLoadControlLimitListData , loadControl )
91
+
81
92
f = localEntity .GetOrAddFeature (model .FeatureTypeTypeDeviceConfiguration , model .RoleTypeServer )
82
93
f .AddFunctionType (model .FunctionTypeDeviceConfigurationKeyValueDescriptionListData , true , false )
83
94
f .AddFunctionType (model .FunctionTypeDeviceConfigurationKeyValueListData , true , true )
@@ -110,6 +121,20 @@ func (e *UCLPCServer) AddFeatures() {
110
121
}
111
122
f .SetData (model .FunctionTypeDeviceConfigurationKeyValueDescriptionListData , deviceConfigDesc )
112
123
124
+ deviceConfig := & model.DeviceConfigurationKeyValueListDataType {
125
+ DeviceConfigurationKeyValueData : []model.DeviceConfigurationKeyValueDataType {
126
+ {
127
+ KeyId : eebusutil .Ptr (model .DeviceConfigurationKeyIdType (configId )),
128
+ IsValueChangeable : eebusutil .Ptr (true ),
129
+ },
130
+ {
131
+ KeyId : eebusutil .Ptr (model .DeviceConfigurationKeyIdType (configId + 1 )),
132
+ IsValueChangeable : eebusutil .Ptr (true ),
133
+ },
134
+ },
135
+ }
136
+ f .SetData (model .FunctionTypeDeviceConfigurationKeyValueListData , deviceConfig )
137
+
113
138
f = localEntity .GetOrAddFeature (model .FeatureTypeTypeDeviceDiagnosis , model .RoleTypeServer )
114
139
f .AddFunctionType (model .FunctionTypeDeviceDiagnosisHeartbeatData , true , false )
115
140
0 commit comments