Skip to content

Commit 4188bfc

Browse files
committed
add close_comm_on_error to example.
1 parent 7f7c37b commit 4188bfc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/contrib/solar.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def main():
3333
framer=ModbusSocketFramer,
3434
timeout=1,
3535
retry_on_empty=True,
36+
close_comm_on_error=True,
3637
)
3738
client.connect()
3839
_logger.info("### Client connected")

0 commit comments

Comments
 (0)