node-lifx-lan-multi 1.1.1 → 1.1.3

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.
@@ -62,7 +62,10 @@ LifxLanUdp.prototype.init = function (config = {}) {
62
62
  }
63
63
  this._netif_list = netif_list;
64
64
  // Set up a UDP tranceiver
65
- this._udp = mDgram.createSocket('udp4');
65
+ this._udp = mDgram.createSocket({
66
+ type: 'udp4',
67
+ reuseAddr: true
68
+ });
66
69
  this._udp.once('error', (error) => {
67
70
  reject(error);
68
71
  return;
@@ -131,7 +134,7 @@ LifxLanUdp.prototype._requestUnicast = function (p) {
131
134
  timer = setTimeout(() => {
132
135
  if (this._requests[seq]) {
133
136
  delete this._requests[seq];
134
- reject(new Error('Timeout'));
137
+ reject(new Error('Timeout:\n' + JSON.stringify(p, null, 2)));
135
138
  }
136
139
  }, this._timeout);
137
140
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-lifx-lan-multi",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "The node-lifx-lan is a Node.js module which allows you to communicate with the Wi-Fi LED smart light products \"LIFX\" using the LAN protocol.",
5
5
  "main": "./lib/lifx-lan.js",
6
6
  "files": [