I wanted to ask how to query every second Modbus, using the JAMOD library. Decided to make a preliminary connection to Modbus and then, within a loop while(true) query the Modbus. After interrogating the device, use a Thread.sleep (1000); is the right way? Thank you.
Asked
Active
Viewed 261 times
1 Answers
1
You should create a Thread (something that implements Runnable).
See this answer : https://stackoverflow.com/a/426795/362332