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 2021/11/23 17:36:47 UTC
[plc4x] branch develop updated: fix(plc4go/knx): fieldHandler nil issue fixed.
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 804520d fix(plc4go/knx): fieldHandler nil issue fixed.
804520d is described below
commit 804520d9bcdc485e92e3ba147cad2dc92a47423c
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Tue Nov 23 18:36:35 2021 +0100
fix(plc4go/knx): fieldHandler nil issue fixed.
---
plc4go/internal/plc4go/knxnetip/Driver.go | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/plc4go/internal/plc4go/knxnetip/Driver.go b/plc4go/internal/plc4go/knxnetip/Driver.go
index a4c2083..eea155b 100644
--- a/plc4go/internal/plc4go/knxnetip/Driver.go
+++ b/plc4go/internal/plc4go/knxnetip/Driver.go
@@ -20,7 +20,6 @@
package knxnetip
import (
- "github.com/apache/plc4x/plc4go/internal/plc4go/spi"
_default "github.com/apache/plc4x/plc4go/internal/plc4go/spi/default"
"github.com/apache/plc4x/plc4go/internal/plc4go/spi/options"
"github.com/apache/plc4x/plc4go/internal/plc4go/spi/transports"
@@ -33,7 +32,6 @@ import (
type Driver struct {
_default.DefaultDriver
- fieldHandler spi.PlcFieldHandler
}
func NewDriver() *Driver {
@@ -43,7 +41,7 @@ func NewDriver() *Driver {
}
func (m Driver) CheckQuery(query string) error {
- _, err := m.fieldHandler.ParseQuery(query)
+ _, err := m.GetPlcFieldHandler().ParseQuery(query)
return err
}
@@ -70,7 +68,7 @@ func (m Driver) GetConnection(transportUrl url.URL, transports map[string]transp
}
// Create the new connection
- connection := NewConnection(transportInstance, options, m.fieldHandler)
+ connection := NewConnection(transportInstance, options, m.GetPlcFieldHandler())
log.Trace().Str("transport", transportUrl.String()).Stringer("connection", connection).Msg("created new connection instance, trying to connect now")
return connection.Connect()
}