资源简介
西门子OPC UA Client,内涵源码
代码片段和文件信息
using System;
using System.Collections;
using System.Security.Cryptography.X509Certificates;
using Opc.Ua;
using Opc.Ua.Client;
using Siemens.OpcUA.Helper;
namespace Siemens.OpcUA
{
///
/// Event handler for the event that the client received a value change.
///
public delegate void valueChanged(object clientHandle DataValue value);
///
/// Event handler for the event that the client received a untrusted server certificate.
///
public delegate void certificateValidation(CertificateValidator validator CertificateValidationEventArgs e);
///
/// This class encapsulates a connection to an OPC UA server and access to particular Services of it.
///
public class Server
{
#region Construction
public Server()
{ }
#endregion
#region Fields
///
/// Keeps a session with an UA server.
///
private Session m_Session = null;
///
/// Interface which encapsulates the use of the browse service of an UA server.
///
private Browser m_Browser = null;
///
/// Keeps a hash table for attribute names.
///
private Hashtable m_hashAttributeNames = null;
#endregion
#region Properties
///
/// Use the certificateValidation delegate as event.
///
public event certificateValidation CertificateEvent = null;
///
/// Provides the session being established with an OPC UA server.
///
public Session Session
{
get { return m_Session; }
}
#endregion
#region Connect
/// Establishes the connection to an OPC UA server.
/// The Url of the endpoint.
/// Result code.
/// Throws and forwards any exception with short error description.
public void Connect(string Url)
{
try
{
// Create the configuration.
ApplicationConfiguration configuration = Helpers.CreateClientConfiguration();
// Create the endpoint description.
EndpointDescription endpointDescription = Helpers.CreateEndpointDescription(Url);
// Create the endpoint configuration (use the application configuration to provide default values).
EndpointConfiguration endpointConfiguration = EndpointConfiguration.Create(configuration);
// The default timeout for a requests sent using the channel.
endpointConfiguration.OperationTimeout = 300000;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 90112 2009-07-03 14:39 OPC_UA_CODE_v10\bin\Opc.Ua.Client.dll
文件 2589184 2009-07-03 14:39 OPC_UA_CODE_v10\bin\Opc.Ua.Core.dll
文件 55296 2010-04-30 11:12 OPC_UA_CODE_v10\bin\Siemens.OpcUA.Client.exe
文件 18944 2010-04-30 11:12 OPC_UA_CODE_v10\bin\Siemens.OpcUA.dll
文件 22528 2010-04-30 11:12 OPC_UA_CODE_v10\bin\Siemens.OpcUA.SimpleClient.exe
文件 90112 2009-07-03 14:39 OPC_UA_CODE_v10\src\bin\Opc.Ua.Client.dll
文件 2589184 2009-07-03 14:39 OPC_UA_CODE_v10\src\bin\Opc.Ua.Core.dll
文件 120 2009-08-18 08:48 OPC_UA_CODE_v10\src\ClientAPI\app.config
文件 40444 2010-04-30 11:03 OPC_UA_CODE_v10\src\ClientAPI\ClientAPI.cs
文件 3087 2010-02-16 09:40 OPC_UA_CODE_v10\src\ClientAPI\ClientAPI.csproj
文件 1727 2010-04-30 11:03 OPC_UA_CODE_v10\src\ClientAPI\ClientDiscovery.cs
文件 4351 2010-04-30 11:03 OPC_UA_CODE_v10\src\ClientAPI\ClientSubsc
文件 841 2010-04-30 10:56 OPC_UA_CODE_v10\src\ClientAPI\Properties\AssemblyInfo.cs
文件 8472 2009-12-14 10:49 OPC_UA_CODE_v10\src\ClientAPI\Properties\Helpers.cs
文件 21097 2010-02-28 23:51 OPC_UA_CODE_v10\src\SimpleClient\MainForm.cs
文件 23609 2010-02-28 23:51 OPC_UA_CODE_v10\src\SimpleClient\MainForm.Designer.cs
文件 5814 2010-02-28 23:51 OPC_UA_CODE_v10\src\SimpleClient\MainForm.resx
文件 521 2010-02-08 15:27 OPC_UA_CODE_v10\src\SimpleClient\Program.cs
文件 1482 2010-04-30 10:56 OPC_UA_CODE_v10\src\SimpleClient\Properties\AssemblyInfo.cs
文件 2879 2010-02-08 15:27 OPC_UA_CODE_v10\src\SimpleClient\Properties\Resources.Designer.cs
文件 5612 2010-02-08 11:40 OPC_UA_CODE_v10\src\SimpleClient\Properties\Resources.resx
文件 1107 2010-02-08 15:27 OPC_UA_CODE_v10\src\SimpleClient\Properties\Settings.Designer.cs
文件 249 2010-02-08 11:40 OPC_UA_CODE_v10\src\SimpleClient\Properties\Settings.settings
文件 4540 2010-02-08 15:28 OPC_UA_CODE_v10\src\SimpleClient\SimpleClient.csproj
文件 13692 2010-04-30 11:06 OPC_UA_CODE_v10\src\UAClient\AttributeListControl.cs
文件 3034 2010-02-08 14:59 OPC_UA_CODE_v10\src\UAClient\AttributeListControl.Designer.cs
文件 5814 2010-02-08 14:59 OPC_UA_CODE_v10\src\UAClient\AttributeListControl.resx
文件 8427 2009-11-25 09:30 OPC_UA_CODE_v10\src\UAClient\AttributeListControl_template.cs
文件 6012 2009-11-25 09:30 OPC_UA_CODE_v10\src\UAClient\AttributeListControl_template.resx
文件 15266 2010-02-10 17:17 OPC_UA_CODE_v10\src\UAClient\BrowseControl.cs
............此处省略57个文件信息
相关资源
- STM32 USB转串口驱动 Virtual COM Port Driv
- 信息论基础答案Elements of Information T
- qcat.win.6.30_installer_00058.2
- Visual Assist X 10.9 Build 2366.7z
- 和利时 OPC软件授权
- H3CNE.GB0-191最新题库以及VCE考试模拟器
- Visual Basic 2010入门经典(中文版)完整
- 北邮通信原理历年考试题
- VisualSFM_CMVS-PMVS_MeshLab
- 《Visual Basic程序设计教程 (第4版)》
- 2018全国乡镇以上省级、地市级、县区
- Visual+Assist+X+10.9+builds+2333.7z
- K8s&&Kubernetes;权威指南第2版.rar
- ASUSPRO P5440UA无线网卡:Realtek 8821CE W
- dbvisualizer_PRO_win_x64_9_1_9 破解版
- 城乡规划GIS技术教程 牛强6-9章章光盘
- OpenCV 4.2.0 Visual Studio 2017 32位 版本
- Visual FoxPro 6.0~9.0解决方案与范例大全
- VAssistX 2086[完美破解+完美汉化]
- 图像局部不变性特征与描述.pdf 王永明
- Visual+Assist+X+通用破解补丁+v2.0
- Visual Assist X 支持VS2019 亲测成功
- STM32CUBE_DCMI_DMA_OV7670(无FIFO)_UART_PI
- MSBuild.7z VS 2019 旧版本平台工具集解决
- Solving least squares problems (1987)
- Visual Assist X for vs2019破解版(亲测可用
- skynet实现的斗地主服务端源码
- FileZilla&Xshell;.zip
- 数据网络中文版第三章 Bertsekas Galla
- _SolidSQUAD_.rar
评论
共有 条评论