@bitpoolos/edge-bacnet 1.3.2 → 1.4.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/common.js CHANGED
@@ -8,35 +8,6 @@ const os = require("os");
8
8
  const { exec } = require("child_process");
9
9
  const baEnum = require("./resources/node-bacstack-ts/dist/index.js").enum;
10
10
  const fs = require("fs");
11
- const { BitArray } = require("./resources/bitArray.js");
12
-
13
- const logger = createLogger({
14
- format: format.combine(
15
- format.timestamp({
16
- format: "YYYY-MM-DD HH:mm:ss",
17
- }),
18
- format.json()
19
- ),
20
- transports: [new transports.Console()],
21
- });
22
-
23
- class DeviceObjectId {
24
- constructor(type, instance) {
25
- this.type = type;
26
- this.instance = instance;
27
- }
28
- }
29
-
30
- class DeviceObject {
31
- constructor(objectId, name, description, type, units, presentValue) {
32
- this.objectId = objectId;
33
- this.name = name;
34
- this.description = description;
35
- this.type = type;
36
- this.units = units;
37
- this.presentValue = presentValue;
38
- }
39
- }
40
11
 
41
12
  class BacnetConfig {
42
13
  constructor(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitpoolos/edge-bacnet",
3
- "version": "1.3.2",
3
+ "version": "1.4.0",
4
4
  "description": "A bacnet gateway for node-red",
5
5
  "dependencies": {
6
6
  "@plus4nodered/ts-node-bacnet": "^1.0.0-beta.2",
package/treeBuilder.js CHANGED
@@ -60,14 +60,7 @@ class treeBuilder {
60
60
  }
61
61
 
62
62
  // Check if the device object exists and the device name is valid
63
- //if (deviceObject && typeof deviceName !== 'object') {
64
63
  if (deviceObject) {
65
-
66
-
67
- //console.log("processDevice found deviceObject ");
68
-
69
- //await this.processDevicePoints(device, deviceObject, "testingDeviceName", ipAddress, deviceId, index);
70
-
71
64
  await this.processDevicePoints(device, deviceObject, deviceName, ipAddress, deviceId, index);
72
65
 
73
66
  } else {