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

Commit 1e808c6

Browse files
committed
Fix heartbeats and remove write access
1 parent 457cab1 commit 1e808c6

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

uclpcserver/uclpc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func (e *UCLPCServer) AddFeatures() {
108108
f.SetData(model.FunctionTypeDeviceConfigurationKeyValueDescriptionListData, deviceConfigDesc)
109109

110110
f = localEntity.GetOrAddFeature(model.FeatureTypeTypeDeviceDiagnosis, model.RoleTypeServer)
111-
f.AddFunctionType(model.FunctionTypeDeviceDiagnosisHeartbeatData, true, true)
111+
f.AddFunctionType(model.FunctionTypeDeviceDiagnosisHeartbeatData, true, false)
112112

113113
f = localEntity.GetOrAddFeature(model.FeatureTypeTypeElectricalConnection, model.RoleTypeServer)
114114
f.AddFunctionType(model.FunctionTypeElectricalConnectionCharacteristicListData, true, true)

ucopev/ucopev.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ func (e *UCOPEV) AddFeatures() {
5252

5353
// server features
5454
f := localEntity.GetOrAddFeature(model.FeatureTypeTypeDeviceDiagnosis, model.RoleTypeServer)
55-
f.AddFunctionType(model.FunctionTypeDeviceDiagnosisStateData, false, false)
55+
f.AddFunctionType(model.FunctionTypeDeviceDiagnosisStateData, true, false)
56+
f.AddFunctionType(model.FunctionTypeDeviceDiagnosisHeartbeatData, true, false)
5657
}
5758

5859
func (e *UCOPEV) AddUseCase() {

ucoscev/ucoscev.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ func (e *UCOSCEV) AddFeatures() {
5858

5959
// server features
6060
f := localEntity.GetOrAddFeature(model.FeatureTypeTypeDeviceDiagnosis, model.RoleTypeServer)
61-
f.AddFunctionType(model.FunctionTypeDeviceDiagnosisStateData, false, false)
61+
f.AddFunctionType(model.FunctionTypeDeviceDiagnosisStateData, true, false)
62+
f.AddFunctionType(model.FunctionTypeDeviceDiagnosisHeartbeatData, true, false)
6263
}
6364

6465
func (e *UCOSCEV) AddUseCase() {

0 commit comments

Comments
 (0)