1

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.

JoeJoe
  • 73
  • 11

1 Answers1

1

You should create a Thread (something that implements Runnable).

See this answer : https://stackoverflow.com/a/426795/362332

Community
  • 1
  • 1
klonq
  • 3,453
  • 4
  • 33
  • 58