Fixed Raspberry Pi discovery
This commit is contained in:
parent
e877dbf65e
commit
f71411aacd
@ -482,7 +482,7 @@
|
||||
<dd class="tag-source">
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="poweredup-node.js.html">poweredup-node.js</a>, <a href="poweredup-node.js.html#line118">line 118</a>
|
||||
<a href="poweredup-node.js.html">poweredup-node.js</a>, <a href="poweredup-node.js.html#line120">line 120</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -774,7 +774,7 @@
|
||||
<dd class="tag-source">
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="poweredup-node.js.html">poweredup-node.js</a>, <a href="poweredup-node.js.html#line109">line 109</a>
|
||||
<a href="poweredup-node.js.html">poweredup-node.js</a>, <a href="poweredup-node.js.html#line111">line 111</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -956,7 +956,7 @@
|
||||
<dd class="tag-source">
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="poweredup-node.js.html">poweredup-node.js</a>, <a href="poweredup-node.js.html#line101">line 101</a>
|
||||
<a href="poweredup-node.js.html">poweredup-node.js</a>, <a href="poweredup-node.js.html#line103">line 103</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1248,7 +1248,7 @@
|
||||
<dd class="tag-source">
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="poweredup-node.js.html">poweredup-node.js</a>, <a href="poweredup-node.js.html#line127">line 127</a>
|
||||
<a href="poweredup-node.js.html">poweredup-node.js</a>, <a href="poweredup-node.js.html#line129">line 129</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1540,7 +1540,7 @@
|
||||
<dd class="tag-source">
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="poweredup-node.js.html">poweredup-node.js</a>, <a href="poweredup-node.js.html#line136">line 136</a>
|
||||
<a href="poweredup-node.js.html">poweredup-node.js</a>, <a href="poweredup-node.js.html#line138">line 138</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1722,7 +1722,7 @@
|
||||
<dd class="tag-source">
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="poweredup-node.js.html">poweredup-node.js</a>, <a href="poweredup-node.js.html#line73">line 73</a>
|
||||
<a href="poweredup-node.js.html">poweredup-node.js</a>, <a href="poweredup-node.js.html#line75">line 75</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1813,7 +1813,7 @@
|
||||
<dd class="tag-source">
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="poweredup-node.js.html">poweredup-node.js</a>, <a href="poweredup-node.js.html#line89">line 89</a>
|
||||
<a href="poweredup-node.js.html">poweredup-node.js</a>, <a href="poweredup-node.js.html#line91">line 91</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -2161,7 +2161,7 @@
|
||||
<dd class="tag-source">
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="poweredup-node.js.html">poweredup-node.js</a>, <a href="poweredup-node.js.html#line189">line 189</a>
|
||||
<a href="poweredup-node.js.html">poweredup-node.js</a>, <a href="poweredup-node.js.html#line191">line 191</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -2271,7 +2271,7 @@
|
||||
<dd class="tag-source">
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="poweredup-node.js.html">poweredup-node.js</a>, <a href="poweredup-node.js.html#line63">line 63</a>
|
||||
<a href="poweredup-node.js.html">poweredup-node.js</a>, <a href="poweredup-node.js.html#line65">line 65</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -2592,7 +2592,7 @@
|
||||
<dd class="tag-source">
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="poweredup-node.js.html">poweredup-node.js</a>, <a href="poweredup-node.js.html#line118">line 118</a>
|
||||
<a href="poweredup-node.js.html">poweredup-node.js</a>, <a href="poweredup-node.js.html#line120">line 120</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -2884,7 +2884,7 @@
|
||||
<dd class="tag-source">
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="poweredup-node.js.html">poweredup-node.js</a>, <a href="poweredup-node.js.html#line109">line 109</a>
|
||||
<a href="poweredup-node.js.html">poweredup-node.js</a>, <a href="poweredup-node.js.html#line111">line 111</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -3066,7 +3066,7 @@
|
||||
<dd class="tag-source">
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="poweredup-node.js.html">poweredup-node.js</a>, <a href="poweredup-node.js.html#line101">line 101</a>
|
||||
<a href="poweredup-node.js.html">poweredup-node.js</a>, <a href="poweredup-node.js.html#line103">line 103</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -3358,7 +3358,7 @@
|
||||
<dd class="tag-source">
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="poweredup-node.js.html">poweredup-node.js</a>, <a href="poweredup-node.js.html#line127">line 127</a>
|
||||
<a href="poweredup-node.js.html">poweredup-node.js</a>, <a href="poweredup-node.js.html#line129">line 129</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -3650,7 +3650,7 @@
|
||||
<dd class="tag-source">
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="poweredup-node.js.html">poweredup-node.js</a>, <a href="poweredup-node.js.html#line136">line 136</a>
|
||||
<a href="poweredup-node.js.html">poweredup-node.js</a>, <a href="poweredup-node.js.html#line138">line 138</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -3832,7 +3832,7 @@
|
||||
<dd class="tag-source">
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="poweredup-node.js.html">poweredup-node.js</a>, <a href="poweredup-node.js.html#line73">line 73</a>
|
||||
<a href="poweredup-node.js.html">poweredup-node.js</a>, <a href="poweredup-node.js.html#line75">line 75</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -3923,7 +3923,7 @@
|
||||
<dd class="tag-source">
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="poweredup-node.js.html">poweredup-node.js</a>, <a href="poweredup-node.js.html#line89">line 89</a>
|
||||
<a href="poweredup-node.js.html">poweredup-node.js</a>, <a href="poweredup-node.js.html#line91">line 91</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -4271,7 +4271,7 @@
|
||||
<dd class="tag-source">
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="poweredup-node.js.html">poweredup-node.js</a>, <a href="poweredup-node.js.html#line189">line 189</a>
|
||||
<a href="poweredup-node.js.html">poweredup-node.js</a>, <a href="poweredup-node.js.html#line191">line 191</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
|
@ -132,7 +132,9 @@ let discoveryEventAttached = false;
|
||||
const startScanning = () => {
|
||||
noble.startScanning([
|
||||
Consts.BLEService.LPF2_HUB,
|
||||
Consts.BLEService.WEDO2_SMART_HUB
|
||||
Consts.BLEService.LPF2_HUB.replace(/-/g, ""),
|
||||
Consts.BLEService.WEDO2_SMART_HUB,
|
||||
Consts.BLEService.WEDO2_SMART_HUB.replace(/-/g, "")
|
||||
]);
|
||||
};
|
||||
noble.on("stateChange", (state) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user