Skip to content

Best practice for connect and close of async client #1756

Closed Locked Answered by janiversen
heinehenning asked this question in Help
Discussion options

You must be logged in to vote

of course not, see e.g. client_calls.py.

You connect in the beginning and close when finished.

Actually the example says that, it's modbus_calls not modbus_call

I am not what sure hint you want the code is right there in the example,
1: create client
2: connect
3: run all the calls you want
4: close

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by heinehenning
Comment options

You must be logged in to vote
1 reply
@janiversen
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants