From feb8bf64688372cce0b8027fbbe8921c260389c8 Mon Sep 17 00:00:00 2001 From: Daniel Zainzinger Date: Thu, 9 Jun 2022 19:14:36 +0200 Subject: [PATCH] extend Transporter interface add Connect() and Close() to the Transporter interface, so that it is possible to connect if the ClientHandler variable is an interface --- modbus.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modbus.go b/modbus.go index 869473c..255364b 100644 --- a/modbus.go +++ b/modbus.go @@ -90,4 +90,6 @@ type Packager interface { // Transporter specifies the transport layer. type Transporter interface { Send(aduRequest []byte) (aduResponse []byte, err error) + Connect() error + Close() error }