@jotiotech/node-red-sia-premise-device 1.0.0 → 1.0.1

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/README.md CHANGED
@@ -1,6 +1,17 @@
1
1
  # SIA Device
2
2
 
3
- TODO
3
+ Simple node-red library that manages connection to SIA server and helps with creation of packets to send to if from connected devices.
4
+ It just acts as a middle man that for now takes the SIA body and creates rest of the packet to send to the server and handles the ACK or lack of ACK from it.
5
+
6
+ For now just basic body is supported (not extended one with things like position and what not) and the user needs to create the body in correct SIA format that will get interpreted by the server.
7
+ However in future releases it's planned to have a much more streamline approach where user just sends code, name, id, zone area and what not and node will create the body by itself.
8
+
9
+ Server is configured in it's special node, on the input to SIA Device node user must input following parameters. Account setting will be provided by your SIA server administrator.
10
+
11
+ ```
12
+ payload.account - hex string with account number
13
+ payload.accountPrefix - hex string with account prefix
14
+ payload.body - SIA payload body, e.g. Nri129^^pi4^FA
15
+ ```
4
16
 
5
- Warning: ONLY ASCII characters are supported, if you ever try to use UTF8 it will not be converted to Windows-1252 and on the receiving end you will end up with gibberish.
6
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jotiotech/node-red-sia-premise-device",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "engines": {
5
5
  "node": ">=12.0.0"
6
6
  },
package/src/SIA_device.js CHANGED
@@ -1,5 +1,3 @@
1
- // Const { Iconv } = require('iconv');
2
-
3
1
  module.exports = function (RED) {
4
2
  const deviceSeqNumbers = new Map();
5
3
  const crypto = require('node:crypto');
@@ -1,12 +1,3 @@
1
- <!--
2
- Copyright (c) since the year 2016 Klaus Landsdorf (http://plus4nodered.com/)
3
- Copyright 2016 - Jason D. Harper, Argonne National Laboratory
4
- Copyright 2015,2016 - Mika Karaila, Valmet Automation Inc.
5
- All rights reserved.
6
- node-red-contrib-modbus
7
-
8
- @author <a href="mailto:klaus.landsdorf@bianco-royal.de">Klaus Landsdorf</a> (Bianco Royal)
9
- -->
10
1
  <script type="text/javascript">
11
2
  RED.nodes.registerType('SIA-server', {
12
3
  category: 'config',