node-opcua-samples 2.140.0 → 2.141.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/interactive_client.js +9 -16
- package/package.json +8 -8
|
@@ -224,21 +224,14 @@ function moveToChild(browseName) {
|
|
|
224
224
|
setCurrentNode(child);
|
|
225
225
|
}
|
|
226
226
|
|
|
227
|
-
function
|
|
227
|
+
async function getRootFolder() {
|
|
228
228
|
if (!rootFolder) {
|
|
229
229
|
rl.pause();
|
|
230
|
-
proxyManager.getObject(makeNodeId(ObjectIds.RootFolder)
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
rl.resume();
|
|
236
|
-
}
|
|
237
|
-
callback();
|
|
238
|
-
});
|
|
239
|
-
} else {
|
|
240
|
-
setCurrentNode(rootFolder);
|
|
241
|
-
callback();
|
|
230
|
+
await proxyManager.getObject(makeNodeId(ObjectIds.RootFolder));
|
|
231
|
+
rootFolder = data;
|
|
232
|
+
assert(rootFolder, "expecting rootFolder");
|
|
233
|
+
setRootNode(rootFolder);
|
|
234
|
+
rl.resume();
|
|
242
235
|
}
|
|
243
236
|
}
|
|
244
237
|
|
|
@@ -548,7 +541,7 @@ function process_line(line) {
|
|
|
548
541
|
|
|
549
542
|
case "rootFolder":
|
|
550
543
|
apply_on_valid_session(cmd, function (the_session, callback) {
|
|
551
|
-
|
|
544
|
+
getRootFolder().then(()=>callback()).catch((err)=>callback(err));
|
|
552
545
|
});
|
|
553
546
|
break;
|
|
554
547
|
|
|
@@ -566,7 +559,7 @@ function process_line(line) {
|
|
|
566
559
|
endTime = startTime;
|
|
567
560
|
startTime = tmp;
|
|
568
561
|
}
|
|
569
|
-
nodes = nodes.map((n)=>coerceNodeId(n));
|
|
562
|
+
nodes = nodes.map((n) => coerceNodeId(n));
|
|
570
563
|
|
|
571
564
|
the_session.readHistoryValue(nodes, startTime, endTime, function (err, historyReadResults) {
|
|
572
565
|
if (err) {
|
|
@@ -593,7 +586,7 @@ function process_line(line) {
|
|
|
593
586
|
case "read":
|
|
594
587
|
apply_on_valid_session(cmd, function (the_session, callback) {
|
|
595
588
|
nodes = [args[1]];
|
|
596
|
-
nodes = nodes.map((n)=>coerceNodeId(n));
|
|
589
|
+
nodes = nodes.map((n) => coerceNodeId(n));
|
|
597
590
|
|
|
598
591
|
the_session.readVariableValue(nodes, function (err, dataValues) {
|
|
599
592
|
if (err) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-samples",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.141.0",
|
|
4
4
|
"description": "pure nodejs OPCUA SDK - module samples",
|
|
5
5
|
"bin": {
|
|
6
6
|
"simple_client": "./dist/simple_client_ts.js",
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
"easy-table": "^1.2.0",
|
|
25
25
|
"env-paths": "2.2.1",
|
|
26
26
|
"exit": "^0.1.2",
|
|
27
|
-
"node-opcua": "2.
|
|
28
|
-
"node-opcua-address-space": "2.
|
|
29
|
-
"node-opcua-address-space-for-conformance-testing": "2.
|
|
27
|
+
"node-opcua": "2.141.0",
|
|
28
|
+
"node-opcua-address-space": "2.141.0",
|
|
29
|
+
"node-opcua-address-space-for-conformance-testing": "2.141.0",
|
|
30
30
|
"node-opcua-assert": "2.139.0",
|
|
31
|
-
"node-opcua-client-proxy": "2.
|
|
31
|
+
"node-opcua-client-proxy": "2.141.0",
|
|
32
32
|
"node-opcua-crypto": "4.15.0",
|
|
33
33
|
"node-opcua-packet-analyzer": "2.139.0",
|
|
34
34
|
"node-opcua-pki": "4.18.0",
|
|
35
|
-
"node-opcua-server-configuration": "2.
|
|
35
|
+
"node-opcua-server-configuration": "2.141.0",
|
|
36
36
|
"node-opcua-utils": "2.139.0",
|
|
37
|
-
"node-opcua-vendor-diagnostic": "2.
|
|
37
|
+
"node-opcua-vendor-diagnostic": "2.141.0",
|
|
38
38
|
"sprintf-js": "^1.1.3",
|
|
39
39
|
"treeify": "^1.1.0",
|
|
40
40
|
"underscore": "^1.13.7",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"internet of things"
|
|
56
56
|
],
|
|
57
57
|
"homepage": "http://node-opcua.github.io/",
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "7467e145ce9ebad2c80cabb096189bda7714083d",
|
|
59
59
|
"files": [
|
|
60
60
|
"dist"
|
|
61
61
|
]
|