I am developing an Android application to read/write Modbus TCP variables in some PLC.
In this moment I read/write variables using the function ReadHoldingRegisters/WriteHoldingRegisters.
master.init()--> ReadHoldingRegisters or WriteHoldingRegisters --> master.destroy();
My question is:
If I want read the registers every second, What is the best way to do it? make 1 sec timer and read every second?
Can I use other modbus4j function to do this?
Thanks, best regards.