更新记录
                                                                                                    
                                                    
                                                        1.0.0(2025-01-13)
                                                                                                                    
                                                                下载此版本
                                                            
                                                        
                                                    
                                                    1.蓝牙基本类
2.设备业务类
3.工具函数
                                                                                                                                                
                                            
                                                                                                                                                        平台兼容性
                                                                                                                                                                                                                                                                                                                                uni-app
                                                                                                                                                                                                                                    
| Vue2 | 
Vue3 | 
Chrome | 
Safari | 
app-vue | 
app-nvue | 
Android | 
iOS | 
鸿蒙 | 
| √ | 
- | 
- | 
- | 
- | 
- | 
- | 
- | 
- | 
                                                                                                                                                            
| 微信小程序 | 
支付宝小程序 | 
抖音小程序 | 
百度小程序 | 
快手小程序 | 
京东小程序 | 
鸿蒙元服务 | 
QQ小程序 | 
飞书小程序 | 
快应用-华为 | 
快应用-联盟 | 
| - | 
- | 
- | 
- | 
- | 
- | 
- | 
- | 
- | 
- | 
- | 
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
                                            蓝牙插件使用文档
一、文件说明
'common/bluetooth/BluetoothManager.js';  //蓝牙基础类
'common/bluetooth/LockDevice.js'   //  智能锁设备类   处理与智能锁相关的具体业务逻辑
'common/bluetooth/Task.js'   //创建或获取蓝牙任务
'/utils/bluetoothUtils.js'  //工具函数 各种进制转换,数据处理,数据加密,累加和计算等
二、创建一个业务类
//示例代码都有
/**
 * 智能锁设备类
 * 处理与智能锁相关的具体业务逻辑
 */
export default class LockDevice extends BluetoothManager {
  constructor(deviceNum) {
    super()
    ....  //具体代码在示例中有
    }
  }
/**
 *  开始蓝牙连接
 */
  async startBluetooth() {} 
 /**
    * 发送数据  
    * @param {*数据内容} msg0 
    * @param {*重发次数} maxAttempts 
    * @param {*间隔时间} interval 
    * @returns 
    */
  repeat_send_bt_msg(msg0, maxAttempts, interval) {}
/**
 * 处理不同命令类型
 * @param {string} cmd - 命令类型
 * @param {string} dataInput - 数据内容
 * @param {number} dataLen - 数据长度
 */
  handleCommand(cmd, dataInput, dataLen) {}
三、页面使用
//具体代码都在示例有
onLoad() {
            // 设备号作为标识
            this.bt_lock = createBtTask('设备号')
            //设备号秘钥
            this.bt_lock.setSecretkey('123456')
            //开始连接蓝牙
            this.bt_lock.startBluetooth()
            //回调出通信状态
           this.bt_lock.msg_collect_finger_callback = this.msg_collect_finger_callback
            //发送录入指令
        this.bt_lock.msg_collect_finger_print(1)
        },