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

Commit 0f7f85e

Browse files
committed
Subscribe to remote DeviceDiag server in UCLPC
1 parent 49bfd00 commit 0f7f85e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

uclpc/events.go

+7-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func (e *UCLPC) HandleEvent(payload spineapi.EventPayload) {
3535
}
3636
}
3737

38-
// the remote device was connected
38+
// the remote entity was connected
3939
func (e *UCLPC) connected(entity spineapi.EntityRemoteInterface) {
4040
// initialise features, e.g. subscriptions, descriptions
4141
if loadControl, err := util.LoadControl(e.service, entity); err == nil {
@@ -48,6 +48,12 @@ func (e *UCLPC) connected(entity spineapi.EntityRemoteInterface) {
4848
logging.Log().Debug(err)
4949
}
5050
}
51+
52+
if localDeviceDiag, err := util.DeviceDiagnosis(e.service, entity); err == nil {
53+
if _, err := localDeviceDiag.Subscribe(); err != nil {
54+
logging.Log().Debug(err)
55+
}
56+
}
5157
}
5258

5359
// the load control limit description data was updated

0 commit comments

Comments
 (0)