|
@@ -127,8 +127,8 @@ public class ConfUtil {
|
|
|
.append("endpoint=\"opc.tcp://").append(item.getStr("ip")).append(":").append(item.getStr("port")).append("\"\n")
|
|
|
.append("connect_timeout=\"10s\"\n")
|
|
|
.append("request_timeout=\"5s\"\n")
|
|
|
- .append("security_policy=\"auto\"\n")
|
|
|
- .append("security_mode=\"auto\"\n");
|
|
|
+ .append("security_policy=\"").append(item.getStr("securityPolicy")).append("\"\n")
|
|
|
+ .append("security_mode=\"").append(item.getStr("securityMode")).append("\"\n");
|
|
|
Integer identityProvider = item.getInt("identityProvider");
|
|
|
if (identityProvider == 0) {
|
|
|
builder.append("auth_method=\"Anonymous\"\n");
|
|
@@ -137,7 +137,7 @@ public class ConfUtil {
|
|
|
.append("username=\"").append(item.getStr("userName")).append("\"\n")
|
|
|
.append("password=\"").append(item.getStr("password")).append("\"\n");
|
|
|
}
|
|
|
- builder.append("timestamp=\"gather\"");
|
|
|
+ builder.append("timestamp=\"server\"\n");
|
|
|
JSONArray array = item.getJSONArray("items");
|
|
|
JSONObject obj;
|
|
|
builder.append("nodes=[\n");
|
|
@@ -184,8 +184,8 @@ public class ConfUtil {
|
|
|
.append("subscription_interval=\"").append(item.getStr("interval")).append("\"\n")
|
|
|
.append("connect_timeout=\"10s\"\n")
|
|
|
.append("request_timeout=\"5s\"\n")
|
|
|
- .append("security_policy=\"auto\"\n")
|
|
|
- .append("security_mode=\"auto\"\n");
|
|
|
+ .append("security_policy=\"").append(item.getStr("securityPolicy")).append("\"\n")
|
|
|
+ .append("security_mode=\"").append(item.getStr("securityMode")).append("\"\n");
|
|
|
Integer identityProvider = item.getInt("identityProvider");
|
|
|
if (identityProvider == 0) {
|
|
|
builder.append("auth_method=\"Anonymous\"\n");
|
|
@@ -194,7 +194,7 @@ public class ConfUtil {
|
|
|
.append("username=\"").append(item.getStr("userName")).append("\"\n")
|
|
|
.append("password=\"").append(item.getStr("password")).append("\"\n");
|
|
|
}
|
|
|
- builder.append("timestamp=\"gather\"");
|
|
|
+ builder.append("timestamp=\"server\"\n");
|
|
|
JSONArray array = item.getJSONArray("items");
|
|
|
JSONObject obj;
|
|
|
builder.append("nodes=[\n");
|