完成BJQ4877功能开发

This commit is contained in:
liub
2025-10-24 17:21:18 +08:00
parent 0909d9f023
commit d37ccfeabc
21 changed files with 3227 additions and 3 deletions

View File

@ -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);