Skip to content

Commit

Permalink
feat(plc4go/cbus): indicate if we handle a subscription event
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Jun 14, 2023
1 parent 6fa5bc1 commit cccdf75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plc4go/internal/cbus/Browser.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ func (m Browser) getInstalledUnitAddressBytes(ctx context.Context) (map[byte]any
blockOffset176ReceivedChan := make(chan any, 100) // We only expect one, but we make it a bit bigger to no clog up
result := make(map[byte]any)
plcConsumerRegistration := subscriptionHandle.Register(func(event apiModel.PlcSubscriptionEvent) {
m.log.Trace().Msgf("handling event:\n%s", event)
if responseCode := event.GetResponseCode("installationMMIMonitor"); responseCode != apiModel.PlcResponseCode_OK {
m.log.Warn().Msgf("Ignoring %v", event)
return
Expand Down

0 comments on commit cccdf75

Please sign in to comment.