You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2023/06/14 09:33:59 UTC

[plc4x] branch develop updated: feat(plc4go/cbus): indicate if we handle a subscription event

This is an automated email from the ASF dual-hosted git repository.

sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/develop by this push:
     new cccdf75826 feat(plc4go/cbus): indicate if we handle a subscription event
cccdf75826 is described below

commit cccdf758268a029da1dc5b64b7a43c22c0542ad6
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Wed Jun 14 11:33:51 2023 +0200

    feat(plc4go/cbus): indicate if we handle a subscription event
---
 plc4go/internal/cbus/Browser.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/plc4go/internal/cbus/Browser.go b/plc4go/internal/cbus/Browser.go
index eddccc3a31..7a1557cb8e 100644
--- a/plc4go/internal/cbus/Browser.go
+++ b/plc4go/internal/cbus/Browser.go
@@ -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