Removed stop/start scan on discovery
This commit is contained in:
parent
ffcfcde55f
commit
748c886df5
@ -5585,7 +5585,7 @@
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Tue Jan 29th 2019
|
||||
on Wed Jan 30th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -4188,7 +4188,7 @@
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Tue Jan 29th 2019
|
||||
on Wed Jan 30th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -2467,7 +2467,7 @@
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Tue Jan 29th 2019
|
||||
on Wed Jan 30th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -4444,7 +4444,7 @@
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Tue Jan 29th 2019
|
||||
on Wed Jan 30th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -5157,7 +5157,7 @@
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Tue Jan 29th 2019
|
||||
on Wed Jan 30th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -3409,7 +3409,7 @@
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Tue Jan 29th 2019
|
||||
on Wed Jan 30th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -860,7 +860,7 @@
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Tue Jan 29th 2019
|
||||
on Wed Jan 30th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -5046,7 +5046,7 @@
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Tue Jan 29th 2019
|
||||
on Wed Jan 30th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -349,7 +349,7 @@ exports.BoostMoveHub = BoostMoveHub;
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Tue Jan 29th 2019
|
||||
on Wed Jan 30th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -6681,7 +6681,7 @@
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Tue Jan 29th 2019
|
||||
on Wed Jan 30th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -277,7 +277,7 @@ var BLECharacteristic;
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Tue Jan 29th 2019
|
||||
on Wed Jan 30th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -298,7 +298,7 @@ exports.DuploTrainBase = DuploTrainBase;
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Tue Jan 29th 2019
|
||||
on Wed Jan 30th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -3272,7 +3272,7 @@
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Tue Jan 29th 2019
|
||||
on Wed Jan 30th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -122,7 +122,7 @@ class Hub extends events_1.EventEmitter {
|
||||
setTimeout(() => {
|
||||
this._name = peripheral.advertisement.localName;
|
||||
this.emit("discoverComplete");
|
||||
}, 500);
|
||||
}, 1000);
|
||||
}
|
||||
/**
|
||||
* @readonly
|
||||
@ -485,7 +485,7 @@ exports.Hub = Hub;
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Tue Jan 29th 2019
|
||||
on Wed Jan 30th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -314,7 +314,7 @@ poweredUP.scan(); // Start scanning for Hubs</code></pre><p>More examples are av
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Tue Jan 29th 2019
|
||||
on Wed Jan 30th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -507,7 +507,7 @@ exports.LPF2Hub = LPF2Hub;
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Tue Jan 29th 2019
|
||||
on Wed Jan 30th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -203,10 +203,10 @@ class PoweredUP extends events_1.EventEmitter {
|
||||
return;
|
||||
}
|
||||
peripheral.removeAllListeners();
|
||||
noble.stopScanning();
|
||||
if (!utils_1.isBrowserContext) {
|
||||
startScanning();
|
||||
}
|
||||
// noble.stopScanning();
|
||||
// if (!isBrowserContext) {
|
||||
// startScanning();
|
||||
// }
|
||||
hub.on("discoverComplete", () => {
|
||||
hub.on("connect", () => {
|
||||
debug(`Hub ${hub.uuid} connected`);
|
||||
@ -275,7 +275,7 @@ exports.PoweredUP = PoweredUP;
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Tue Jan 29th 2019
|
||||
on Wed Jan 30th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -306,7 +306,7 @@ exports.PUPHub = PUPHub;
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Tue Jan 29th 2019
|
||||
on Wed Jan 30th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -236,7 +236,7 @@ exports.PUPRemote = PUPRemote;
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Tue Jan 29th 2019
|
||||
on Wed Jan 30th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
File diff suppressed because one or more lines are too long
@ -496,7 +496,7 @@ exports.WeDo2SmartHub = WeDo2SmartHub;
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Tue Jan 29th 2019
|
||||
on Wed Jan 30th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "node-poweredup",
|
||||
"version": "1.7.3",
|
||||
"version": "1.7.4",
|
||||
"description": "A Node.js module to interface with LEGO Powered UP components.",
|
||||
"homepage": "https://github.com/nathankellenicki/node-poweredup/",
|
||||
"main": "dist/index.js",
|
||||
|
@ -50,7 +50,7 @@ export class Hub extends EventEmitter {
|
||||
setTimeout(() => {
|
||||
this._name = peripheral.advertisement.localName;
|
||||
this.emit("discoverComplete");
|
||||
}, 500);
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
|
||||
|
@ -135,10 +135,10 @@ export class PoweredUP extends EventEmitter {
|
||||
}
|
||||
|
||||
peripheral.removeAllListeners();
|
||||
noble.stopScanning();
|
||||
if (!isBrowserContext) {
|
||||
startScanning();
|
||||
}
|
||||
// noble.stopScanning();
|
||||
// if (!isBrowserContext) {
|
||||
// startScanning();
|
||||
// }
|
||||
|
||||
hub.on("discoverComplete", () => {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user