@amigo9090/ih-libiec61850-node 1.0.61 → 1.0.62
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/builds/linux_arm/addon_iec61850.node +0 -0
- package/builds/linux_arm64/addon_iec61850.node +0 -0
- package/builds/linux_x64/addon_iec61850.node +0 -0
- package/builds/macos_arm64/addon_iec61850.node +0 -0
- package/builds/macos_x64/addon_iec61850.node +0 -0
- package/builds/windows_x64/addon_iec61850.node +0 -0
- package/examples/test3.js +13 -0
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/examples/test3.js
CHANGED
|
@@ -17,6 +17,19 @@ async function browseModel() {
|
|
|
17
17
|
console.log('Data model (first 5 nodes):');
|
|
18
18
|
console.log(JSON.stringify(model.slice(0, 5), null, 2));
|
|
19
19
|
// Если нужно всё: console.log(JSON.stringify(model, null, 2));
|
|
20
|
+
// Пример: кэшируем структуры для нескольких объектов
|
|
21
|
+
await client.readDataModel([
|
|
22
|
+
'WAGO61850ServerDevice/XCBR1.Pos[ST]',
|
|
23
|
+
'WAGO61850ServerDevice/LLN0.Mod[CO]',
|
|
24
|
+
'WAGO61850ServerDevice/GGIO1.Ind1[ST]'
|
|
25
|
+
]);
|
|
26
|
+
|
|
27
|
+
// Теперь последующие вызовы readData вернут осмысленные имена
|
|
28
|
+
const values = await client.readData([
|
|
29
|
+
'WAGO61850ServerDevice/XCBR1.Pos[ST]',
|
|
30
|
+
'WAGO61850ServerDevice/LLN0.Mod[CO]'
|
|
31
|
+
]);
|
|
32
|
+
console.log(values); // stVal, ctlVal и т.д.
|
|
20
33
|
} catch (err) {
|
|
21
34
|
console.error('Browse error:', err);
|
|
22
35
|
} finally {
|