File tree Expand file tree Collapse file tree 5 files changed +2
-19
lines changed
Expand file tree Collapse file tree 5 files changed +2
-19
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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 > </ 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 >
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",
Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff line change @@ -123,15 +123,6 @@ <h3>Inputs</h3>
123123This 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- 300 ms 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.
136127The info contains characteristic UUID, which will help you to compose or parse messages
137128on writing/reading characteristics.
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments