|
@@ -85,6 +85,7 @@ class BleUtil {
|
|
|
return;
|
|
|
}
|
|
|
const hex_util = require('./../../utils/hex_util');
|
|
|
+ const bt_parse = require('./../../devices/bluetooth/bt_parse');
|
|
|
that.manager.onBLECharacteristicValueChange(function (value) {
|
|
|
var receiveText = hex_util.buf2string(value);
|
|
|
console.log('接收到数据文字:' + receiveText);
|
|
@@ -94,7 +95,7 @@ class BleUtil {
|
|
|
for (let i = 0; i < buffer.byteLength; i++) {
|
|
|
result.push(buffer.getUint8(i))
|
|
|
}
|
|
|
- BtParse.parseTLV(result);
|
|
|
+ bt_parse.parseTLV(result);
|
|
|
});
|
|
|
},
|
|
|
function () {
|