hafidz1977 / pymodbus

Automatically exported from code.google.com/p/pymodbus
0 stars 0 forks source link

Best Method For Continuous Monitoring #71

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Don't have a "problem".

What version of the product are you using? On what operating system?

Latest python 2.x version in Ubuntu 12.10 Repo 

Please provide any additional information below.

Just curious what the best method is for "continuous" monitoring of a holding 
register (over TCP).  Is it "good" practice to open and close the client 
connection each time a call to a register(s) is made?  Or can one leave the 
connection open and get "real time" readings?  

Thanks in advance, and thanks for the great work!

Original issue reported on code.google.com by brandon...@gmail.com on 16 Sep 2013 at 5:00

GoogleCodeExporter commented 9 years ago
This actually depends on the server you are hitting and how many connections it 
is expected to receive.  If it is a very small embedded system like a mote and 
it is being connected to by a large number of systems, maybe you should 
disconnect and reconnect.  But for most use cases, I would simply leave the 
connection open and just close/re-open on a disconnection or when your service 
is stopped.

Original comment by Bashw...@gmail.com on 16 Sep 2013 at 7:55

GoogleCodeExporter commented 9 years ago
Great! Thanks for the advice. 

Original comment by brandon...@gmail.com on 16 Sep 2013 at 10:14

GoogleCodeExporter commented 9 years ago

Original comment by Bashw...@gmail.com on 5 Jan 2015 at 7:19