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/24 16:45:04 UTC
[plc4x] 01/07: - 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 develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git
commit 471873a71e30e1eb993a48f60ae006c3e3736913
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
},