|
@@ -791,10 +791,10 @@ namespace YSAI.Opc.ua.client
|
|
|
//添加订阅
|
|
//添加订阅
|
|
|
clientSession?.AddSubscription(allSubscriptions[Tag]);
|
|
clientSession?.AddSubscription(allSubscriptions[Tag]);
|
|
|
//在服务器端创建订阅
|
|
//在服务器端创建订阅
|
|
|
- if (allSubscriptions[Tag].CreateAsync().Wait(10000))
|
|
|
|
|
|
|
+ if (allSubscriptions[Tag].CreateAsync().Wait(60000))
|
|
|
{
|
|
{
|
|
|
// 在服务器端创建监控项
|
|
// 在服务器端创建监控项
|
|
|
- if (allSubscriptions[Tag].ApplyChangesAsync().Wait(10000))
|
|
|
|
|
|
|
+ if (allSubscriptions[Tag].ApplyChangesAsync().Wait(60000))
|
|
|
{
|
|
{
|
|
|
return Break("AddSubscribe", true);
|
|
return Break("AddSubscribe", true);
|
|
|
}
|
|
}
|
|
@@ -844,10 +844,10 @@ namespace YSAI.Opc.ua.client
|
|
|
//添加订阅
|
|
//添加订阅
|
|
|
clientSession?.AddSubscription(allSubscriptions[Tag]);
|
|
clientSession?.AddSubscription(allSubscriptions[Tag]);
|
|
|
//在服务器端创建订阅
|
|
//在服务器端创建订阅
|
|
|
- if (allSubscriptions[Tag].CreateAsync().Wait(10000))
|
|
|
|
|
|
|
+ if (allSubscriptions[Tag].CreateAsync().Wait(60000))
|
|
|
{
|
|
{
|
|
|
// 在服务器端创建监控项
|
|
// 在服务器端创建监控项
|
|
|
- if (allSubscriptions[Tag].ApplyChangesAsync().Wait(10000))
|
|
|
|
|
|
|
+ if (allSubscriptions[Tag].ApplyChangesAsync().Wait(60000))
|
|
|
{
|
|
{
|
|
|
return Break("AddSubscribe", true);
|
|
return Break("AddSubscribe", true);
|
|
|
}
|
|
}
|