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