@amigo9090/ih-libiec61850-node 1.0.61 → 1.0.63

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/examples/test3.js CHANGED
@@ -17,6 +17,23 @@ 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
+ 'WAGO61850ServerDevice/LLN0.NamPlt[DC]',
26
+ 'WAGO61850ServerDevice/LLN0.Diag[CO]'
27
+ ]);
28
+
29
+ // Теперь последующие вызовы readData вернут осмысленные имена
30
+ const values = await client.readData([
31
+ 'WAGO61850ServerDevice/XCBR1.Pos[ST]',
32
+ 'WAGO61850ServerDevice/LLN0.Mod[CO]',
33
+ 'WAGO61850ServerDevice/LLN0.NamPlt[DC]',
34
+ 'WAGO61850ServerDevice/LLN0.Diag[CO]'
35
+ ]);
36
+ console.log(values); // stVal, ctlVal и т.д.
20
37
  } catch (err) {
21
38
  console.error('Browse error:', err);
22
39
  } finally {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amigo9090/ih-libiec61850-node",
3
- "version": "1.0.61",
3
+ "version": "1.0.63",
4
4
  "description": "Node.js addon for IEC 61850 client (MMS, GOOSE) using libiec61850",
5
5
  "main": "index.js",
6
6
  "keywords": [