Expose modbus handler timeout (#603)
This commit is contained in:
parent
d8f9dcaeca
commit
6d88b7be2b
1 changed files with 5 additions and 0 deletions
|
|
@ -56,6 +56,11 @@ func (mb *Connection) Logger(logger meters.Logger) {
|
|||
mb.conn.Logger(logger)
|
||||
}
|
||||
|
||||
// Timeout sets the connection timeout (not idle timeout)
|
||||
func (mb *Connection) Timeout(timeout time.Duration) {
|
||||
mb.conn.Timeout(timeout)
|
||||
}
|
||||
|
||||
// ReadCoils wraps the underlying implementation
|
||||
func (mb *Connection) ReadCoils(address, quantity uint16) ([]byte, error) {
|
||||
mb.prepare()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue