@halsystems/red-bacnet 2.1.0-alpha.0 → 2.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.1.0]
4
+ ### Changed
5
+ - Matched v2.1.0-alpha.0 release
6
+ - Removed `broadcastAddress` filter list from transport
7
+
3
8
  ## [2.1.0-alpha.0]
4
9
  ### Added
5
10
  - BACnet client now listening to both `interface` and `broadcastAddress`
@@ -60,6 +60,7 @@ class Client extends events_1.EventEmitter {
60
60
  this._transport.on('message', this._receiveData.bind(this));
61
61
  this._transport.on('error', this._receiveError.bind(this));
62
62
 
63
+ // HAL added
63
64
  // Add a default error handler to prevent unhandled error events
64
65
  // This will be overridden if the user adds their own error listener
65
66
  this.on('error', (err) => {
@@ -4,9 +4,10 @@ exports.Transport = void 0;
4
4
  const dgram_1 = require("dgram");
5
5
  const events_1 = require("events");
6
6
  const DEFAULT_BACNET_PORT = 47808;
7
- const GLOBAL_BROADCAST_ADDRESS = "255.255.255.255";
8
7
  const UDP_TYPE = "udp4";
9
8
 
9
+ // HAL modified
10
+ // to allow UDP listening on broadcast address
10
11
  class Transport extends events_1.EventEmitter {
11
12
  constructor(settings) {
12
13
  super();
@@ -22,7 +23,6 @@ class Transport extends events_1.EventEmitter {
22
23
 
23
24
  if (
24
25
  this._settings.broadcastAddress &&
25
- this._settings.broadcastAddress !== GLOBAL_BROADCAST_ADDRESS &&
26
26
  this._settings.broadcastAddress !== this._settings.interface
27
27
  ) {
28
28
  this._broadcastServer = (0, dgram_1.createSocket)({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@halsystems/red-bacnet",
3
- "version": "2.1.0-alpha.0",
3
+ "version": "2.1.0",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"