node-lifx-lan-multi 1.1.6 → 1.1.7

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.
@@ -317,18 +317,24 @@ LifxLanUdp.prototype._checkRequestParams = function (params) {
317
317
  };
318
318
 
319
319
  LifxLanUdp.prototype._receivePacket = function (buf, rinfo) {
320
+ console.log("LIFX packet received");
320
321
  if (this._isNetworkInterfaceAddress(rinfo.address)) {
322
+ console.log("LIFX packet is addressed to network interface address, ignoring");
321
323
  return;
322
324
  }
323
325
  let parsed = mParser.parse(buf);
324
326
  if (!parsed) {
327
+ console.log("LIFX packet could not be parsed");
325
328
  return;
326
329
  }
327
330
  parsed['address'] = rinfo.address;
328
331
  let seq = parsed['header']['sequence'];
329
332
  let callback = this._requests[seq];
330
333
  if (callback) {
334
+ console.log("LIFX packet callback");
331
335
  callback(parsed);
336
+ } else {
337
+ console.log("LIFX packet no callback identified");
332
338
  }
333
339
  };
334
340
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-lifx-lan-multi",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
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": [