Comments (8)
The samples in this repo are using the latest 2.0.0* pre-release versions.
Do you like the new api? I am looking for feedback before "officializing".
from opc-ua-samples.
@awcullen ... New version is very good and also easy to understand....
I m using it without any issue....
Tejas Lodha
from opc-ua-samples.
Does the new version support also ExpandedNodeIds as MonitoredItemAttributes ?
from opc-ua-samples.
I have an application where I used the UaTcpSessionClient and the Subscribe() method to register the monitored items from a ViewModel. What is the equivalent code with the new opc-ua client version, as UaTcpSessionClient does not exist anymore?
Also for the UaTcpSessionClient I selected "manually" which endpoint to connect (I did not want to always have the "default" one with the highest security)
// discover available endpoints of server.
var getEndpointsRequest = new GetEndpointsRequest
{
EndpointUrl = this.discoveryUrl,
ProfileUris = new[] { TransportProfileUris.UaTcpTransport }
};
this.logger.LogDebug($"Discovering endpoints of '{getEndpointsRequest.EndpointUrl}'.");
var getEndpointsResponse = UaTcpDiscoveryClient.GetEndpointsAsync(getEndpointsRequest).Result;
var selectedEndpoint = getEndpointsResponse.Endpoints.OrderByDescending(e => e.SecurityLevel).Last();
this.session = new UaTcpSessionClient(
new ApplicationDescription()
{
ApplicationName = "AlarmUI",
ApplicationUri = $"urn:{System.Net.Dns.GetHostName()}:OpcUa.AlarmUI",
ApplicationType = ApplicationType.Client
},
new DirectoryStore(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "pki"),
loggerFactory: this.loggerFactory),
this.ProvideUserIdentity,
selectedEndpoint,
this.loggerFactory);
How can all the available endpoints be discovered with the new opc-ua client ? How can be selected the endpoint to be used in the session, without having the UaTcpSessionClient ?
In my application I have for instance only the discovery url, and want to open a session to the endpoint with the lowest security.
from opc-ua-samples.
What exactly is the meaning of/difference between the requestedUrl and the endpointUrl parameters from the Map() method in UaApplicationBuilder ?
I also debugged the MobileHmi.Droid application, and after the creation of the UaApplication the MappedPoints contain one MappedPoint record. In the EndpointDescription for this one record only the EndpointUrl is set ("opc.tcp://10.0.2.2:26543"), the other properties (SecurityLevel, SecurityMode, SecurityPolicyUri, ...) are either 0, null or invalid.
The Map() method does definitely not seem to work correctly if the parameter SecurityPolicyUri is set (for example to "http://opcfoundation.org/UA/SecurityPolicy#None").
And if not set, the caller cannot take any influence on which endpoint is chosen at the endpoint discovery. Can you please take a look at this ?
from opc-ua-samples.
In the MobileHmi sample, I added:
.Map("opc.tcp://localhost:26543", "opc.tcp://10.0.2.2:26543")
That was because I wanted requests for "opc.tcp://localhost:26543" to be directed to "opc.tcp://10.0.2.2:26543".
(There is also a version that takes a config file, see sample RobotHmi).
If you don't set the SecurityPolicyUri, then the endpoint will be selected with the highest security.
If you also set SecurityPolicyUri (for example to "http://opcfoundation.org/UA/SecurityPolicy#None"), then you will find that the endpoint selected will be restricted to only endpoints with "None" security.
In your case, maybe the 'None' security was turned off at the server?
from opc-ua-samples.
With redirection you mean some kind of routing mechanism ?
With the 1.5.12 release and UaTcpSessionClient I can connect to the "None" security endpoint. The problems occur only with the 2.0.0 prerelease.
What parameters should be put in the Map() call if I want to access directly (without any redirection) a server with the address "opc.tcp://192.168.1.1:4444" and connect to the endpoint with the SecurityPolicyUri "http://opcfoundation.org/UA/SecurityPolicy#None" ?
Where/how can be set the values for SecurityLevel, SecurityMode, SecurityPolicyUri ? Actually they dont seem to be set correctly.
from opc-ua-samples.
You could use:
.Map("opc.tcp://192.168.1.1:4444", "opc.tcp://192.168.1.1:4444", SecurityPolicyUris.None)
from opc-ua-samples.
Related Issues (20)
- UWP app rebuild issue in Visual Studio 2015 HOT 2
- Can we send live data dump to Sql Server from PLC HOT 4
- Timing at application startup HOT 1
- Fetch Live data from method HOT 15
- Server certificate rejected HOT 2
- How to make these parameter can modify HOT 4
- [RobotApp] XAML Designer crashing caused by AlarmConditionToStringConverter (VS2017) HOT 5
- OPC UA Example of website HOT 6
- Get node id, node name (tag name) in data change notification HOT 4
- Get the nodeid corresponding to Tag name and vice versa HOT 6
- Can use thingsboard connect your UA server? HOT 24
- Keep checking if the opc server is connected HOT 1
- Node monitoring reliability HOT 4
- Unable to connect to RobotServer using ConsoleApp due to Certificate issue HOT 4
- How does the initial reconnect work? HOT 1
- Workstation.RobotApp Exception in Windows.UI.Xaml.dll code 0xc000027b HOT 1
- Why does this throw "LocalPrivateKey is null" HOT 2
- Wpf on .NET 5 HOT 1
- Workstation.RobotServer with MonitoringMode.Sampling
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opc-ua-samples.