summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bfa4970)
raw | patch | inline | side by side (parent: bfa4970)
author | Tony Cave <t-cave@ti.com> | |
Tue, 21 Apr 2015 15:17:54 +0000 (15:17 +0000) | ||
committer | Tony Cave <t-cave@ti.com> | |
Tue, 21 Apr 2015 15:17:54 +0000 (15:17 +0000) |
zb-iot-agent.js | patch | blob | history |
diff --git a/zb-iot-agent.js b/zb-iot-agent.js
index 1956687b00c56cf01d326bc09c1b739c97415d07..ce4ab0bd71239ef0aa0ef5d37325c91155172e18 100755 (executable)
--- a/zb-iot-agent.js
+++ b/zb-iot-agent.js
.on('removeDev', function(data) {
console.log("nwkmgr emitted removeDev: ", data);
//remove all devices with this ieee addr
- for(var devIdx in self.devArray)
+ var devIdx = 0;
+ for(devIdx = 0; devIdx < self.devArray.length; devIdx++)
{
var ieeeBb = new ByteBuffer(8, ByteBuffer.LITTLE_ENDIAN)
.append(self.devArray[devIdx].info.ieee, "hex", 0);