opcua功能读写所需读取jar
opc-ua-stack-1.3.346-197.jar
prosys-opc-ua-java-sdk-client-3.2.0-690.jar
主要读取类main函数
uaclient = new UaClient("opc.tcp://"+IP);
uaclient.setSecurityMode(SecurityMode.NONE);
ApplicationDescription appDescription = new ApplicationDescription();
appDescription.setApplicationName(new LocalizedText("SimpleClient", Locale.ENGLISH));
// appDescription.setApplicationUri("urn:localhost:opc.tcp://192.168.43.50:4840");
appDescription.setApplicationUri("urn:localhost:UA:SimpleClient");
appDescription.setProductUri("urn:prosysopc.com:UA:SimpleClient");
appDescription.setApplicationType(ApplicationType.Client);
final ApplicationIdentity identity = new ApplicationIdentity();
identity.setApplicationDescription(appDescription);
uaclient.setApplicationIdentity(identity);
uaclient.connect();