thing-it-device-ar-drone
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -65,3 +65,3 @@ module.exports = { | ||
var q = require('q'); | ||
var noble = require('noble'); | ||
var noble; | ||
@@ -79,2 +79,6 @@ var GUID_PATTERN = /([a-f0-9]{8})-?([a-f0-9]{4})-?([a-f0-9]{4})-?([a-f0-9]{4})-?([a-f0-9]{12})/; | ||
} else { | ||
if (!noble) { | ||
noble = require('noble'); | ||
} | ||
noble.on("discover", function (peripheral) { | ||
@@ -134,2 +138,6 @@ if (peripheral.advertisement.localName && | ||
} else { | ||
if (!noble) { | ||
noble = require('noble'); | ||
} | ||
noble.on('discover', function (peripheral) { | ||
@@ -146,2 +154,3 @@ /*if (peripheral.uuid === this.uuid) { | ||
console.log("Found a registered Rolling Spider " + peripheral.advertisement.localName); | ||
if (peripheral.uuid) { | ||
@@ -148,0 +157,0 @@ console.log("GUID " + peripheral.uuid.replace(GUID_PATTERN, GUID_REPLACEMENT)); |
{ | ||
"name": "thing-it-device-ar-drone", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "[thing-it-node] Device Plugin for AR Drones.", | ||
@@ -5,0 +5,0 @@ "authors": "Marc Gille", |
189865
780