Skip to content

Commit e47e3fb

Browse files
committed
1.7.8
1 parent 2fbc737 commit e47e3fb

File tree

21 files changed

+545
-141
lines changed

21 files changed

+545
-141
lines changed

core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.iottree</groupId>
77
<artifactId>iottree-parent</artifactId>
8-
<version>1.7.7</version>
8+
<version>1.7.8</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111

driver-parent/driver-common/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<artifactId>driver-parent</artifactId>
88
<groupId>org.iottree.driver</groupId>
9-
<version>1.7.7</version>
9+
<version>1.7.8</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212
<artifactId>iottree-driver-common</artifactId>

driver-parent/driver-opc/pom.xml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
<parent>
55
<artifactId>driver-parent</artifactId>
66
<groupId>org.iottree.driver</groupId>
7-
<version>1.7.7</version>
8-
7+
<version>1.7.8</version>
98
</parent>
109

1110
<artifactId>iottree-driver-opc</artifactId>
@@ -41,6 +40,8 @@
4140
<systemPath>${basedir}/lib/jeasyopc.jar</systemPath>
4241
</dependency>
4342
-->
43+
44+
<!--
4445
<dependency>
4546
<groupId>org.openscada.jinterop</groupId>
4647
<artifactId>org.openscada.jinterop.core</artifactId>
@@ -66,7 +67,18 @@
6667
<artifactId>bcprov-jdk15on</artifactId>
6768
<version>1.61</version>
6869
</dependency>
70+
-->
71+
<dependency>
72+
<groupId>org.eclipse.milo</groupId>
73+
<artifactId>milo-sdk-client</artifactId>
74+
</dependency>
6975

76+
<!-- https://mvnrepository.com/artifact/org.eclipse.milo/sdk-server -->
77+
<dependency>
78+
<groupId>org.eclipse.milo</groupId>
79+
<artifactId>milo-sdk-server</artifactId>
80+
</dependency>
81+
7082
</dependencies>
7183

7284
<build>

driver-parent/driver-opc/src/main/java/org/iottree/driver/opc/da/Test.java

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,33 @@
33
import java.util.Collection;
44
import java.util.concurrent.Executors;
55

6-
import org.openscada.opc.dcom.list.ClassDetails;
7-
import org.openscada.opc.lib.common.ConnectionInformation;
8-
import org.openscada.opc.lib.da.Server;
9-
import org.openscada.opc.lib.list.*;
6+
//import org.openscada.opc.dcom.list.ClassDetails;
7+
//import org.openscada.opc.lib.common.ConnectionInformation;
8+
//import org.openscada.opc.lib.da.Server;
9+
//import org.openscada.opc.lib.list.*;
1010

1111
public class Test
1212
{
13-
public static void main(String[] args) throws Exception
14-
{
15-
ConnectionInformation ci = new ConnectionInformation();
16-
ci.setHost("localhost");
17-
ci.setDomain("");
18-
ci.setUser("zzj");
19-
ci.setPassword("zhijun1090");
20-
ci.setClsid("7BC0CC8E-482C-47CA-ABDC-0FE7F9C6E729");
21-
Server server = new Server(ci, Executors.newSingleThreadScheduledExecutor());
22-
server.connect();
23-
24-
// 或以下获取OPCEnum方法
25-
ServerList serverList = new ServerList("localhost", "zzj", "zhijun1090", "");
26-
Collection<ClassDetails> classDetails = serverList.listServersWithDetails(
27-
new Category[] { Categories.OPCDAServer10, Categories.OPCDAServer20, Categories.OPCDAServer30 },
28-
new Category[] {});
29-
for (ClassDetails cds : classDetails)
30-
{
31-
System.out.println(cds.getProgId() + "=" + cds.getDescription());
32-
}
33-
}
13+
// public static void main(String[] args) throws Exception
14+
// {
15+
// ConnectionInformation ci = new ConnectionInformation();
16+
// ci.setHost("localhost");
17+
// ci.setDomain("");
18+
// ci.setUser("zzz");
19+
// ci.setPassword("");
20+
// ci.setClsid("7BC0CC8E-482C-47CA-ABDC-0FE7F9C6E729");
21+
// Server server = new Server(ci, Executors.newSingleThreadScheduledExecutor());
22+
// server.connect();
23+
//
24+
// // 或以下获取OPCEnum方法
25+
// ServerList serverList = new ServerList("localhost", "lll", "", "");
26+
// Collection<ClassDetails> classDetails = serverList.listServersWithDetails(
27+
// new Category[] { Categories.OPCDAServer10, Categories.OPCDAServer20, Categories.OPCDAServer30 },
28+
// new Category[] {});
29+
// for (ClassDetails cds : classDetails)
30+
// {
31+
// System.out.println(cds.getProgId() + "=" + cds.getDescription());
32+
// }
33+
// }
3434

3535
}

0 commit comments

Comments
 (0)