資源簡介
基于 HslCommunication.dll ,Opc.Ua.Core.dll實現
代碼片段和文件信息
/*?========================================================================
?*?Copyright?(c)?2005-2019?The?OPC?Foundation?Inc.?All?rights?reserved.
?*
?*?OPC?Foundation?MIT?License?1.00
?*?
?*?Permission?is?hereby?granted?free?of?charge?to?any?person
?*?obtaining?a?copy?of?this?software?and?associated?documentation
?*?files?(the?“Software“)?to?deal?in?the?Software?without
?*?restriction?including?without?limitation?the?rights?to?use
?*?copy?modify?merge?publish?distribute?sublicense?and/or?sell
?*?copies?of?the?Software?and?to?permit?persons?to?whom?the
?*?Software?is?furnished?to?do?so?subject?to?the?following
?*?conditions:
?*?
?*?The?above?copyright?notice?and?this?permission?notice?shall?be
?*?included?in?all?copies?or?substantial?portions?of?the?Software.
?*?THE?SOFTWARE?IS?PROVIDED?“AS?IS“?WITHOUT?WARRANTY?OF?ANY?KIND
?*?EXPRESS?OR?IMPLIED?INCLUDING?BUT?NOT?LIMITED?TO?THE?WARRANTIES
?*?OF?MERCHANTABILITY?FITNESS?FOR?A?PARTICULAR?PURPOSE?AND
?*?NONINFRINGEMENT.?IN?NO?EVENT?SHALL?THE?AUTHORS?OR?COPYRIGHT
?*?HOLDERS?BE?LIABLE?FOR?ANY?CLAIM?DAMAGES?OR?OTHER?LIABILITY
?*?WHETHER?IN?AN?ACTION?OF?CONTRACT?TORT?OR?OTHERWISE?ARISING
?*?FROM?OUT?OF?OR?IN?CONNECTION?WITH?THE?SOFTWARE?OR?THE?USE?OR
?*?OTHER?DEALINGS?IN?THE?SOFTWARE.
?*
?*?The?complete?license?agreement?can?be?found?here:
?*?http://opcfoundation.org/License/MIT/1.00/
?*?======================================================================*/
using?System;
using?System.Collections.Generic;
using?System.Drawing;
using?System.Security.Cryptography.X509Certificates;
using?System.Windows.Forms;
using?System.IO;
using?Opc.Ua;
using?Opc.Ua.Client;
using?Opc.Ua.Client.Controls;
namespace?Quickstarts.ReferenceClient
{
????///?
????///?The?main?form?for?a?simple?Quickstart?Client?application.
????///?
????public?partial?class?MainForm?:?Form
????{
????????#region?Constructors
????????///?
????????///?Creates?an?empty?form.
????????///?
????????private?MainForm()
????????{
????????????InitializeComponent();
????????}
????????///?
????????///?Creates?a?form?which?uses?the?specified?client?configuration.
????????///?
????????///?The?configuration?to?use.
????????public?MainForm(ApplicationConfiguration?configuration)
????????{
????????????InitializeComponent();
????????????ConnectServerCTRL.Configuration?=?m_configuration?=?configuration;
????????????ConnectServerCTRL.ServerUrl?=?“opc.tcp://localhost:62541/Quickstarts/ReferenceServer“;
????????????this.Text?=?m_configuration.ApplicationName;
????????}
????????#endregion
????????#region?Private?Fields
????????private?ApplicationConfiguration?m_configuration;
????????private?Session?m_session;
????????private?bool?m_connectedOnce;
????????#endregion
????????#region?Private?Methods
????????#endregion
????????#region?Event?Handlers
????????///?
????????///?Connects?to?a?server.
????????///?
????????private?async?vo
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2020-07-03?09:50??ReferenceClient\
?????目錄???????????0??2020-07-03?09:47??ReferenceClient\.vs\
?????目錄???????????0??2020-07-03?09:47??ReferenceClient\.vs\Reference?Client\
?????目錄???????????0??2020-07-03?10:39??ReferenceClient\.vs\Reference?Client\v15\
?????文件????????7168??2020-07-03?10:39??ReferenceClient\.vs\Reference?Client\v15\.suo
?????目錄???????????0??2020-07-03?09:47??ReferenceClient\.vs\Reference?Client\v15\Server\
?????目錄???????????0??2020-07-03?09:47??ReferenceClient\.vs\Reference?Client\v15\Server\sqlite3\
?????文件???????????0??2020-07-03?09:47??ReferenceClient\.vs\Reference?Client\v15\Server\sqlite3\db.lock
?????文件????????4096??2020-07-03?09:47??ReferenceClient\.vs\Reference?Client\v15\Server\sqlite3\storage.ide
?????文件???????32768??2020-07-03?09:47??ReferenceClient\.vs\Reference?Client\v15\Server\sqlite3\storage.ide-shm
?????文件?????1458512??2020-07-03?09:51??ReferenceClient\.vs\Reference?Client\v15\Server\sqlite3\storage.ide-wal
?????文件????????1917??2020-06-28?06:06??ReferenceClient\App.config
?????文件????????3262??2020-06-28?06:06??ReferenceClient\App.ico
?????目錄???????????0??2020-07-03?09:46??ReferenceClient\bin\
?????目錄???????????0??2020-07-03?09:46??ReferenceClient\bin\Debug\
?????文件????????3262??2020-06-28?06:06??ReferenceClient\bin\Debug\App.ico
?????文件?????2740824??2018-11-06?13:35??ReferenceClient\bin\Debug\BouncyCastle.Crypto.dll
?????文件??????471040??2018-05-06?12:44??ReferenceClient\bin\Debug\HslCommunication.dll
?????文件???????33656??2018-11-12?17:30??ReferenceClient\bin\Debug\Microsoft.AspNetCore.Connections.Abstractions.dll
?????文件???????22904??2018-11-12?17:30??ReferenceClient\bin\Debug\Microsoft.AspNetCore.Hosting.Abstractions.dll
?????文件??????133496??2018-11-12?17:30??ReferenceClient\bin\Debug\Microsoft.AspNetCore.Hosting.dll
?????文件???????15224??2018-11-12?17:30??ReferenceClient\bin\Debug\Microsoft.AspNetCore.Hosting.Server.Abstractions.dll
?????文件???????76152??2018-11-12?17:29??ReferenceClient\bin\Debug\Microsoft.AspNetCore.Http.Abstractions.dll
?????文件???????82296??2018-11-12?17:29??ReferenceClient\bin\Debug\Microsoft.AspNetCore.Http.dll
?????文件???????38776??2018-11-12?17:29??ReferenceClient\bin\Debug\Microsoft.AspNetCore.Http.Extensions.dll
?????文件???????32120??2018-11-12?17:28??ReferenceClient\bin\Debug\Microsoft.AspNetCore.Http.Features.dll
?????文件??????469368??2018-11-12?17:30??ReferenceClient\bin\Debug\Microsoft.AspNetCore.Server.Kestrel.Core.dll
?????文件???????17272??2018-11-12?17:31??ReferenceClient\bin\Debug\Microsoft.AspNetCore.Server.Kestrel.dll
?????文件???????14712??2018-11-12?17:30??ReferenceClient\bin\Debug\Microsoft.AspNetCore.Server.Kestrel.Https.dll
?????文件???????45944??2018-11-12?17:30??ReferenceClient\bin\Debug\Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.dll
?????文件???????41336??2018-11-12?17:30??ReferenceClient\bin\Debug\Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.dll
............此處省略178個文件信息
- 上一篇:MES通訊
- 下一篇:JSON C#與服務器通訊
評論
共有 條評論