Skip to content
Discussion options

You must be logged in to vote

First of all use async !
Secondly, your device probably do not allow many connections, but if it does then you can have 1 client pr thread.

ModbusClient is NOT threadsafe so please do not use the same client from multiple threads....instead use asyncio and get a lot better performance.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@janiversen
Comment options

@jjauzion
Comment options

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