@bitpoolos/edge-bacnet 1.2.1 → 1.2.2

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.
Files changed (2) hide show
  1. package/bacnet_client.js +8 -3
  2. package/package.json +1 -1
package/bacnet_client.js CHANGED
@@ -231,8 +231,14 @@ class BacnetClient extends EventEmitter {
231
231
  that.logOut("queryDevices: invalid device found: ", device);
232
232
  query(index);
233
233
  }
234
- } else if(index == that.deviceList.length){
235
- that.queryDevicesManually();
234
+ } else if(index == that.deviceList.length) {
235
+
236
+ if(that.manualDiscoverQueue.length > 0) {
237
+ that.queryDevicesManually();
238
+ } else {
239
+ that.pollInProgress = false;
240
+ }
241
+
236
242
  }
237
243
  }
238
244
  }
@@ -385,7 +391,6 @@ class BacnetClient extends EventEmitter {
385
391
  const queryDevices = new Task('simple task', () => {
386
392
  if(!that.pollInProgress) that.queryDevices();
387
393
  that.sanitizeDeviceList();
388
- //that.queryDevicesManually();
389
394
  });
390
395
 
391
396
  const queryJob = new SimpleIntervalJob({ seconds: parseInt(config.device_read_schedule), }, queryDevices)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitpoolos/edge-bacnet",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "A bacnet gateway for node-red",
5
5
  "dependencies": {
6
6
  "@plus4nodered/ts-node-bacnet": "^1.0.0-beta.2",