完成BJQ4877功能开发
This commit is contained in:
@ -1587,7 +1587,11 @@ class BleHelper {
|
||||
}
|
||||
//向蓝牙设备发送一个字符串的ASCII码
|
||||
sendString(deviceid, str, writeServiceId, wirteCharactId, ms) {
|
||||
if (str && str.length) {
|
||||
if(str && typeof(str)=='object'){
|
||||
str=JSON.stringify(str);
|
||||
}
|
||||
if (str) {
|
||||
|
||||
let buffer = new ArrayBuffer(str.length);
|
||||
let dataView = new DataView(buffer);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user