You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -64,60 +63,23 @@ import { thingDescription } from "./demo-opcua-thing-description";
64
63
65
64
### Run the Example App
66
65
67
-
The `examples/src/opcua` folder contains a set of typescript demo that shows you
66
+
The `examples/src/bindings/opcua` folder contains a set of typescript demo that shows you
68
67
how to define a thing description containing OPCUA Variables and methods.
69
68
70
69
-`demo-opcua1.ts` shows how to define and read an OPC-UA variable in WoT.
71
70
-`demo-opcua2.ts` shows how to subscribe to an OPC-UA variable in WoT.
72
71
-`opcua-coffee-machine-demo.ts` demonstrates how to define and invoke OPCUA methods as WoT actions.
73
72
74
-
### Form extensions
73
+
### Format for href
75
74
76
-
#### href
77
-
78
-
the `href` property must contains a OPCUA endpoint url in the form `opc.tcp://MACHINE:PORT/Application`
75
+
The `href` must contain an OPCUA endpoint url in the form of `opc.tcp://<address>:<port>/?id=<nodeId>`
79
76
such as for instance:
80
-
`opc.tcp://opcuademo.sterfive.com:26543` or `opc.tcp://localhost:48010`
81
-
82
-
#### opcua:nodeId
83
-
84
-
The form must contain an `opcua:nodeId` property that describes the nodeId of the OPCUA Variable to read/write/subscribe or the nodeId of the OPCUA Object related to the action.
85
-
86
-
The `opcua:nodeId` can have 2 forms:
87
-
88
-
- a **NodeId** as a string, such as `"ns=1;i=1234"` , for instance:
89
-
90
-
```javascript
91
-
"opcua:nodeId":"ns=1;s=\"Machine\".\"Component\""
92
-
```
93
-
94
-
- or **browsePath**: The browse path will be converted into the corresponding nodeId at runtime when first encountered.
0 commit comments