@amigo9090/ih-libiec61850-node 1.0.32 → 1.0.33
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/index_iec61850_client2.js +8 -7
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const { MmsClient } = require('
|
|
1
|
+
const { MmsClient } = require('../build/Release/addon_iec61850'); //../build/Release/addon_iec61850
|
|
2
2
|
const util = require('util');
|
|
3
3
|
|
|
4
4
|
const client = new MmsClient((event, data) => {
|
|
@@ -104,11 +104,11 @@ async function handleConnectionOpened() {
|
|
|
104
104
|
});
|
|
105
105
|
|
|
106
106
|
// Пакетное чтение датасетов
|
|
107
|
-
if (dataSets.length > 0) {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
107
|
+
//if (dataSets.length > 0) {
|
|
108
|
+
// console.log('Reading datasets in batch...');
|
|
109
|
+
// const dataSetRefs = dataSets.map(ds => ds.reference);
|
|
110
|
+
// await client.readDataSetValues(dataSetRefs);
|
|
111
|
+
//}
|
|
112
112
|
|
|
113
113
|
// Читаем все DataSet'ы одним вызовом
|
|
114
114
|
console.log('\nЧтение значений DataSet...');
|
|
@@ -136,7 +136,8 @@ async function handleConnectionOpened() {
|
|
|
136
136
|
'WAGO61850ServerDevice/GGIO1.Ind.stVal',
|
|
137
137
|
'WAGO61850ServerDevice/CALH1.GrAlm.stVal'
|
|
138
138
|
];
|
|
139
|
-
await client.readData(dataRefs);
|
|
139
|
+
const readRefResult = await client.readData(dataRefs);
|
|
140
|
+
console.log("readRefResult " + util.inspect(readRefResult));
|
|
140
141
|
|
|
141
142
|
// Включение отчётности
|
|
142
143
|
const rcbRef = 'WAGO61850ServerDevice/LLN0.RP.ReportBlock0101';
|