Skip to content

Commit 072b3cb

Browse files
author
dbaba
committed
Strip unused properties
1 parent 697c7b7 commit 072b3cb

File tree

5 files changed

+2
-19
lines changed

5 files changed

+2
-19
lines changed

examples/01-read-write.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,6 @@
210210
"localName": "CC2650 SensorTag",
211211
"address": "11:22:33:aa:bb:cc",
212212
"uuid": "112233aabbcc",
213-
"muteNotifyEvents": true,
214-
"operationTimeout": "5000",
215213
"characteristics": [
216214
{
217215
"uuid": "2a50",

src/generic-ble.html

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,6 @@
138138
</label>
139139
<input type='text' id='node-config-input-uuid' data-i18n='[placeholder]generic-ble.placeholder.uuid'>
140140
</div>
141-
<div class="form-row">
142-
<label>&nbsp;</label>
143-
<input type="checkbox" id="node-config-input-muteNotifyEvents" style="display: inline-block; width: auto; vertical-align: top;">
144-
<label for="node-config-input-muteNotifyEvents" style="width: 70%;" data-i18n="generic-ble.label.muteNotifyEvents"></label>
145-
</div>
146141
<div class='form-row node-config-input-characteristics-container-row'>
147142
<i class='fa fa-gear'></i> <span data-i18n='generic-ble.label.characteristics'></span>
148143
<ol id='node-config-input-characteristics-container'></ol>
@@ -170,7 +165,6 @@
170165
localName: { value: '', required: false },
171166
address: { value: '', required: false },
172167
uuid: { value: '', required: false },
173-
muteNotifyEvents: { value: false, required: false },
174168
// characteristic
175169
// {
176170
// "uuid": "2a19",

src/generic-ble.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ function startBLEScanning(RED) {
186186
if (noble.state === 'poweredOn') {
187187
noble.startScanning([], true);
188188
genericBleState.scanning = true;
189+
} else {
190+
debug(`noble.state=>${noble.state}`);
189191
}
190192
}
191193

@@ -359,7 +361,6 @@ module.exports = function (RED) {
359361
this.localName = n.localName;
360362
this.address = n.address;
361363
this.uuid = n.uuid;
362-
this.muteNotifyEvents = n.muteNotifyEvents;
363364
this.characteristics = [];
364365
const key = getAddressOrUUID(n);
365366
if (key) {

src/locales/en-US/generic-ble.html

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,6 @@ <h3>Inputs</h3>
123123
This can be done when you choose a device from the list.
124124
</p>
125125
<p>
126-
<code>Mute notify events</code> allows you to turn on/off whether to subscribe peripheral events.
127-
Check this item if you'd like to mute any notifications.
128-
</p>
129-
<p>
130-
<code>Operation Timeout</code> is the timeout period of Read/Write/Notify response <b>per characteristic</b>.
131-
300ms per characteristic by default.
132-
Since the node sequentially accesses each BLE device, the longer timeout delays the following operations.
133-
</p>
134-
<p>
135126
<code>GATT Characteristics</code> just shows the info provided by the device itself.
136127
The info contains characteristic UUID, which will help you to compose or parse messages
137128
on writing/reading characteristics.

src/locales/en-US/generic-ble.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ generic-ble:
1313
notification: Emit notify events
1414
customType: (Custom Type)
1515
unnamedChr: <Unnamed>
16-
muteNotifyEvents: Mute notify events
1716
scanning: BLE Scanning
1817
applyBleDevice: Apply
1918
noSignal: no signal

0 commit comments

Comments
 (0)