Equivalent WoT TD definition

href

Description

The NodeID of a UA Variable or Method is encoded as href in forms of a property or actions definition. Detail addressing mapping is specified in Section 6.2

Snippet example in OPC UA (e.g., as nodeset)

<NamespaceUris>

<Uri>http://opcfoundation.org/UA/DI/</Uri>

<Uri>http://example.namespace.com/demo/</Uri>

</NamespaceUris>…

<UAVariable NodeId="ns=1;i=35" BrowseName="1:IdealCycleTime" ParentNodeId="ns=1;i=20" DataType="UInt64" AccessLevel="3"> …

Transformed usage in a TD definition (as snippet)

"properties": {

"1:IdealCycleTime": {

"forms" : [{

"href":"/?id=ns=1;i=35"

Alternative:

"properties": {

"1:IdealCycleTime": {

"forms" : [{

"href":"/?id=nsu= http://example.namespace.com/demo/;i=35"