sunspec / pysunspec2

SunSpec Python library for interfacing with SunSpec devices.
Apache License 2.0
57 stars 22 forks source link

Add timeout param to tcp client connect #47

Closed CJNE closed 12 hours ago

CJNE commented 3 years ago

Adds an optional timeout param to the client connect method, this will make it possible for example to have a short timeout for connection and a longer timeout for regular read/write. The internal modbus client already supports this so this is a very small change.