You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello.
I just started using this lib, and I try integrate JHipster and PLC device using this. I would like to ask if it's any possibility to connect with PLC device all the time? I saw in documentation that in connection params we cantype timeout connection param (deafult 5000). It means that every time when I send request from server, I must create new instance of connection and after recive data close the connection?
eg.:
try {
fatekPLC = new FatekPLC(connectionParam);
List<RegValue> list = new FatekReadDataCmd(fatekPLC, temperatureReg, 12).send();
fatekPLC.close();
} catch (Exception e) {
System.out.println("error during connection");
}
The text was updated successfully, but these errors were encountered:
Once you create FatekPLC object connection is managed in this object. When some IOException occurs internal connection is closed and new connection is established when you call next send method.
If everything is ok - old connection is reused.
Hello.
I just started using this lib, and I try integrate JHipster and PLC device using this. I would like to ask if it's any possibility to connect with PLC device all the time? I saw in documentation that in connection params we cantype timeout connection param (deafult 5000). It means that every time when I send request from server, I must create new instance of connection and after recive data close the connection?
eg.:
The text was updated successfully, but these errors were encountered: