-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
opcua: nsu in nodeId (fixing #1334) #1335
base: master
Are you sure you want to change the base?
Conversation
73543d3
to
71765c5
Compare
71765c5
to
5982c62
Compare
5982c62
to
32cbe50
Compare
@erossignon many thanks! beside of the "ns=..." nodeId, TD needs also to allow "nsu=..." as node ID. Still we need to clearify, if the nodeID can be part of the href or is dedicated ua:nodeId term is needed. |
The idea is that we use For example, we now have {
"base": "opc.tcp://192.168.120.237:4840/",
"properties": {
"foo": {
"forms": [
{
"opcua:nodeId": "nsu=http://example.org/SpecialNamespace/;s=\"LED\".\"State\""
}
]
}
}
} which would become the following {
"base": "opc.tcp://192.168.120.237:4840/",
"properties": {
"foo": {
"forms": [
{
"href": "nsu=http://example.org/SpecialNamespace/;s=\"LED\".\"State\""
}
]
}
}
} The problem I see are href parsers since the absolute URL would become the following
A more Web style friendly format would be to use query parameters
Note1: the difference is the Note2: it has the downside that one needs to reconstruct the format string at OPC UA side. Question: I wonder whether people share the concern that if we purely use the OPC UA format string href parsers will destroy/corrupt the information. Note3: we also need to be careful with some specific characters like |
May be one way is to encode the href portion using encodeUriComponent decodeUriComponent
to prevent any clashes |
Going with URL encoding was also the preliminary decision taken for MQTT at w3c/wot-binding-templates#292 (comment) |
The problem I see with doing so is that for humans, it is not easy to read the "encoded" string. Anyhow, It seems we need a general decision that can be taken across all/other bindings... |
We had a chat about this together with @sebastiankb @danielpeintner @wiresio and @Kaz040. Here our points, that need to be discussed with the OPC UA community as well.
|
No description provided.