You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2021/01/31 11:20:23 UTC

[plc4x] 11/45: - Made the KNX driver return an error if the device we try to connect to doesn't support "tunneling"

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

cdutz pushed a commit to branch feature/plc4c
in repository https://gitbox.apache.org/repos/asf/plc4x.git

commit 429eea08fc2857efe5cc6967a7145db5de821881
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Fri Jan 22 13:02:55 2021 +0100

    - Made the KNX driver return an error if the device we try to connect to doesn't support "tunneling"
---
 plc4go/internal/plc4go/knxnetip/KnxNetIpConnection.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/plc4go/internal/plc4go/knxnetip/KnxNetIpConnection.go b/plc4go/internal/plc4go/knxnetip/KnxNetIpConnection.go
index 2439065..397337e 100644
--- a/plc4go/internal/plc4go/knxnetip/KnxNetIpConnection.go
+++ b/plc4go/internal/plc4go/knxnetip/KnxNetIpConnection.go
@@ -304,6 +304,8 @@ func (m *KnxNetIpConnection) Connect() <-chan plc4go.PlcConnectionConnectResult
 							return nil
 						},
 						time.Second*1)
+				} else {
+					return errors.New("current device doesn't support tunneling")
 				}
 				return nil
 			},