remove comment
This commit is contained in:
parent
93933124a4
commit
8c5f7d144a
@ -29,13 +29,8 @@ class DataCharacteristic extends bleno.Characteristic {
|
|||||||
tmp = []
|
tmp = []
|
||||||
console.log(data[0])
|
console.log(data[0])
|
||||||
} else if (data.length == 1 && data[0] == 0xff) {
|
} else if (data.length == 1 && data[0] == 0xff) {
|
||||||
//console.log(tmp)
|
|
||||||
console.log(Buffer.from(tmp).toString())
|
console.log(Buffer.from(tmp).toString())
|
||||||
localEvent.emit('print', Buffer.from(tmp).toString())
|
localEvent.emit('print', Buffer.from(tmp).toString())
|
||||||
// printString(Buffer.from(tmp).toString())
|
|
||||||
// if(this._notifyFunc) {
|
|
||||||
// this._notifyFunc(Buffer.from([0x00,0x01]))
|
|
||||||
// }
|
|
||||||
} else {
|
} else {
|
||||||
tmp = [...tmp, ...data.slice(2, data.length)]
|
tmp = [...tmp, ...data.slice(2, data.length)]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user