3 Star 19 Fork 17

老醒 / sand-plugin-bluetooth

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0

蓝牙 API 原生插件兼容说明

Android IOS
5.0(21)-最新 9.0-最新

简单介绍

Android:基于BLE框架进行实现和完善

框架地址:BLE框架地址

IOS:基于BabyBluetooth框架进行实现和完善

框架地址:BabyBluetooth框架地址

后台运行支持:

iOS后台运行权限配置

iOS 云打包后台权限配置教程

后台运行配置:

"UIBackgroundModes" : [ "bluetooth-central", "fetch" ]

参考示例项目manifest.json源码视图

插件API格式采用和uni-app官方接口基本一致的风格进行搭建和编写,实现功能包含:

  • 适配器的状态监听,打开及关闭
  • 连接设备和断开设备
  • 断线重连
  • 获取服务和特征
  • 读、写、订阅特征数据

演示预览

预览图

演示工程地址:sand-plugin-bluetooth-test项目地址

API目录

openBluetoothAdapter(options,callback)

初始化蓝牙模块

options 参数说明

属性 类型 是否必填 说明

callback 回调函数参数对象说明

属性 类型 说明
status String 接口调用状态
message String 状态说明

示例代码

ble.openBluetoothAdapter({},(res)=>{
    if(res.status=='2500'){
        //
    }
})

注意:

  • 大部分操作类API(监听类API除外)都需要在openBluetoothAdapter之后进行调用,否则会失败,status返回2501-蓝牙未初始化或未开启
  • 可通过 onBluetoothAdapterStateChange 监听手机蓝牙状态的改变

startBluetoothDevicesDiscovery(options,callback)

开始搜寻附近的蓝牙外围设备。此操作比较耗费系统资源,请在搜索并连接到设备后调用 stopBluetoothDevicesDiscovery 方法停止搜索。

options 参数说明

属性 类型 是否必填 说明

callback 回调函数参数对象说明

属性 类型 说明
status String 接口调用状态
message String 状态说明

示例代码

ble.startBluetoothDevicesDiscovery({},(res)=>{
    if(res.status=='2500'){
        //
    }
})

注意:开启后获取扫描到的设备需要使用 onBluetoothDeviceFound 进行异步获取,建议先进行监听再扫描


onBluetoothDeviceFound(options,callback)

监听寻找到新设备的事件

options 参数说明

属性 类型 是否必填 说明

callback 回调函数参数对象说明

属性 类型 说明
status String 接口调用状态
message String 状态说明
devices String 设备信息JSON格式数组字符串信息

devices的结构

属性 类型 说明
name string 蓝牙设备名称,某些设备可能没有
deviceId string 用于区分设备的 id
RSSI number 当前蓝牙设备的信号强度
advertisData string 当前蓝牙设备的广播数据段中的 ManufacturerData 数据段(十六进制字符串,每2个字符对应一个字节)
advertisServiceUUIDs Array 当前蓝牙设备的广播数据段中的 ServiceUUIDs 数据段
localName string 当前蓝牙设备的广播数据段中的 LocalName 数据段

示例代码

ble.onBluetoothDeviceFound({},(res)=>{
    if(res.status=='2500'){
        //发现新设备
        let devices=JSON.parse(res.devices);
        console.log(res.devices);
    }
})

注意:

  • 受限于uni-app原生插件对返回类型的要求,第二层数据只能采用String类型,需要使用JSON.parse方式进行对象解析
  • 监听在插件中只会保存一份,即最后一次调用 onBluetoothDeviceFound 的callback会触发回调事件

stopBluetoothDevicesDiscovery(options,callback)

停止搜寻附近的蓝牙外围设备。若已经找到需要的蓝牙设备并不需要继续搜索时,建议调用该接口停止蓝牙搜索。

options 参数说明

属性 类型 是否必填 说明

callback 回调函数参数对象说明

属性 类型 说明
status String 接口调用状态
message String 状态说明

示例代码

ble.stopBluetoothDevicesDiscovery({},(res)=>{
    if(res.status=='2500'){
        //
    }
})

onBluetoothAdapterStateChange(options,callback)

监听蓝牙适配器状态变化事件

options 参数说明

属性 类型 是否必填 说明

callback 回调函数参数对象说明

属性 类型 说明
status String 接口调用状态
message String 状态说明
available boolean 蓝牙是否可用
discovering boolean 是否正在搜索附近设备

示例代码

ble.onBluetoothAdapterStateChange({},(res)=>{
    if(res.status=='2500'){
        //
    }
})

getConnectedBluetoothDevices(options,callback)

获取处于已连接状态的设备。

options 参数说明

属性 类型 是否必填 说明

callback 回调函数参数对象说明

属性 类型 说明
status String 接口调用状态
message String 状态说明
devices String 设备信息JSON格式数组字符串信息

devices的结构

属性 类型 说明
name string 蓝牙设备名称,某些设备可能没有
deviceId string 用于区分设备的 id
RSSI number 当前蓝牙设备的信号强度
advertisData string 当前蓝牙设备的广播数据段中的 ManufacturerData 数据段(十六进制字符串,每2个字符对应一个字节)
advertisServiceUUIDs Array 当前蓝牙设备的广播数据段中的 ServiceUUIDs 数据段
localName string 当前蓝牙设备的广播数据段中的 LocalName 数据段

示例代码

ble.getConnectedBluetoothDevices({},(res)=>{
    if(res.status=='2500'){
        //发现新设备
        let devices=JSON.parse(res.devices);
        console.log(res.devices);
    }
})

getBluetoothDevices(options,callback)

获取在蓝牙模块生效期间所有已发现的蓝牙设备。包括已经和本机处于连接状态的设备。

options 参数说明

属性 类型 是否必填 说明

callback 回调函数参数对象说明

属性 类型 说明
status String 接口调用状态
message String 状态说明
devices String 设备信息JSON格式数组字符串信息

devices的结构

属性 类型 说明
name string 蓝牙设备名称,某些设备可能没有
deviceId string 用于区分设备的 id
restore boolean 是否是可以后台恢复的设备,true-可直接使用createBLEConnection进行恢复连接动作
RSSI number 当前蓝牙设备的信号强度
advertisData string 当前蓝牙设备的广播数据段中的 ManufacturerData 数据段(十六进制字符串,每2个字符对应一个字节)
advertisServiceUUIDs Array 当前蓝牙设备的广播数据段中的 ServiceUUIDs 数据段
localName string 当前蓝牙设备的广播数据段中的 LocalName 数据段

示例代码

ble.getBluetoothDevices({},(res)=>{
    if(res.status=='2500'){
        //发现新设备
        let devices=JSON.parse(res.devices);
        console.log(res.devices);
    }
})

getBluetoothAdapterState(options,callback)

获取本机蓝牙适配器状态。

options 参数说明

属性 类型 是否必填 说明

callback 回调函数参数对象说明

属性 类型 说明
status String 接口调用状态
message String 状态说明
available boolean 蓝牙是否可用
discovering boolean 是否正在搜索附近设备

示例代码

ble.getBluetoothAdapterState({},(res)=>{
    if(res.status=='2500'){
        //
    }
})

closeBluetoothAdapter(options,callback)

关闭蓝牙模块。调用该方法将断开所有已建立的连接并释放系统资源。建议在使用蓝牙流程后,与 openBluetoothAdapter 成对调用。

options 参数说明

属性 类型 是否必填 说明

callback 回调函数参数对象说明

属性 类型 说明
status String 接口调用状态
message String 状态说明

示例代码

ble.closeBluetoothAdapter({},(res)=>{
    if(res.status=='2500'){
        //
    }
})

writeBLECharacteristicValue(options,callback)

向低功耗蓝牙设备特征值中写入二进制数据。注意:必须设备的特征值支持 write 才可以成功调用。

options 参数说明

属性 类型 是否必填 说明
deviceId string 蓝牙设备 id
serviceId string 蓝牙特征值对应服务的 uuid
characteristicId string 蓝牙特征值的 uuid
value string 蓝牙设备特征值二进制字节数组对应转换的十六进制字符串值

callback 回调函数参数对象说明

属性 类型 说明
status String 接口调用状态
message String 状态说明

示例代码

ble.writeBLECharacteristicValue({
    deviceId:'DDCC-EE-AA-BB-CC',
    serviceId:'0000-1902-C503',
    characteristicId:'0000-1902-C503-0001',
    value:'0010'//两个字节:[0,1]
},(res)=>{
    if(res.status=='2500'){
        //写数据完成
    }
})

readBLECharacteristicValue(options,callback)

读取低功耗蓝牙设备的特征值的二进制数据值。注意:必须设备的特征值支持 read 才可以成功调用。

options 参数说明

属性 类型 是否必填 说明
deviceId string 蓝牙设备 id
serviceId string 蓝牙特征值对应服务的 uuid
characteristicId string 蓝牙特征值的 uuid

callback 回调函数参数对象说明

属性 类型 说明
status String 接口调用状态
message String 状态说明

示例代码

// 必须在这里的回调才能获取到值
ble.onBLECharacteristicValueChange({},(res)=>{
    if(res.status=='2500'){
        console.log(res.deviceId);
        console.log(res.serviceId);
        console.log(res.characteristicId);
        console.log(res.value);
    }
});
ble.readBLECharacteristicValue({
    deviceId:'DDCC-EE-AA-BB-CC',
    serviceId:'0000-1902-C503',
    characteristicId:'0000-1902-C503-0001'
},(res)=>{
    if(res.status=='2500'){
        //读取API调用成功,请在onBLECharacteristicValueChange获取特征值数据
    }
});

注意:

  • 接口读取到的信息需要在 onBLECharacteristicValueChange 方法注册的回调中获取。

onBLEConnectionStateChange(options,callback)

监听低功耗蓝牙连接状态的改变事件。包括开发者主动连接或断开连接,设备丢失,连接异常断开等等

options 参数说明

属性 类型 是否必填 说明

callback 回调函数参数对象说明

属性 类型 说明
status String 接口调用状态
message String 状态说明
deviceId string 蓝牙设备ID
connected boolean 是否处于已连接状态

示例代码

ble.onBLEConnectionStateChange({},(res)=>{
    if(res.status=='2500'){
        //
        console.log(res.deviceId,'连接状态变化',res.connected);
    }
})

onBLECharacteristicValueChange(options,callback)

监听低功耗蓝牙设备的特征值变化事件。必须先启用 notifyBLECharacteristicValueChange 接口才能接收到设备推送的 notification。

options 参数说明

属性 类型 是否必填 说明

callback 回调函数参数对象说明

属性 类型 说明
status String 接口调用状态
message String 状态说明
deviceId string 蓝牙设备 id
serviceId string 蓝牙特征值对应服务的 uuid
characteristicId String 蓝牙特征值的 uuid
value String 蓝牙设备特征值二进制字节数组对应转换的十六进制字符串值

示例代码

ble.onBLECharacteristicValueChange({},(res)=>{
    if(res.status=='2500'){
        console.log(res.deviceId);
        console.log(res.serviceId);
        console.log(res.characteristicId);
        console.log(res.value);
    }
});

notifyBLECharacteristicValueChange(options,callback)

启用低功耗蓝牙设备特征值变化时的 notify 功能,订阅特征值。注意:必须设备的特征值支持 notify 或者 indicate 才可以成功调用。

options 参数说明

属性 类型 是否必填 说明
deviceId string 蓝牙设备 id
serviceId string 蓝牙特征值对应服务的 uuid
characteristicId string 蓝牙特征值的 uuid

callback 回调函数参数对象说明

属性 类型 说明
status String 接口调用状态
message String 状态说明

示例代码

// 必须在这里的回调才能获取到值
ble.onBLECharacteristicValueChange({},(res)=>{
    if(res.status=='2500'){
        console.log(res.deviceId);
        console.log(res.serviceId);
        console.log(res.characteristicId);
        console.log(res.value);
    }
});
ble.notifyBLECharacteristicValueChange({
    deviceId:'DDCC-EE-AA-BB-CC',
    serviceId:'0000-1902-C503',
    characteristicId:'0000-1902-C503-0001'
},(res)=>{
    if(res.status=='2500'){
        //订阅API调用成功,请在onBLECharacteristicValueChange获取特征值数据
    }
});

cancelNotifyBLECharacteristicValueChange(options,callback)

取消特征值订阅

options 参数说明

属性 类型 是否必填 说明
deviceId string 蓝牙设备 id
serviceId string 蓝牙特征值对应服务的 uuid
characteristicId string 蓝牙特征值的 uuid

callback 回调函数参数对象说明

属性 类型 说明
status String 接口调用状态
message String 状态说明

示例代码

ble.cancelNotifyBLECharacteristicValueChange({
    deviceId:'DDCC-EE-AA-BB-CC',
    serviceId:'0000-1902-C503',
    characteristicId:'0000-1902-C503-0001'
},(res)=>{
    if(res.status=='2500'){
        //订阅API调用成功,已取消订阅
    }
});

getBLEDeviceServices(options,callback)

获取蓝牙设备所有服务(service)。

options 参数说明

属性 类型 是否必填 说明
deviceId string 蓝牙设备 id

callback 回调函数参数对象说明

属性 类型 说明
status String 接口调用状态
message String 状态说明
services String JSON数组格式字符串

services内对象结构

属性 类型 说明
uuid string 蓝牙设备服务的 uuid
isPrimary boolean 该服务是否为主服务

示例代码

ble.getBLEDeviceServices({
    deviceId:'DDCC-EE-AA-BB-CC'
},(res)=>{
    if(res.status=='2500'){
        let services=JSON.parse(res.services);
        console.log(services);
    }
});

getBLEDeviceRSSI(options,callback)

获取蓝牙设备的实时信号强度。

options 参数说明

属性 类型 是否必填 说明
deviceId string 蓝牙设备 id

callback 回调函数参数对象说明

属性 类型 说明
status String 接口调用状态
message String 状态说明
deviceId string 蓝牙设备 id
RSSI number 信号强度值

示例代码

ble.getBLEDeviceRSSI({
    deviceId:'DDCC-EE-AA-BB-CC'
},(res)=>{
    if(res.status=='2500'){
        console.log(res.RSSI);
    }
});

getBLEDeviceCharacteristics(options,callback)

获取蓝牙设备某个服务中所有特征值(characteristic)。

options 参数说明

属性 类型 是否必填 说明
deviceId string 蓝牙设备 id
serviceId string 蓝牙特征值对应服务的 uuid

callback 回调函数参数对象说明

属性 类型 说明
status String 接口调用状态
message String 状态说明
characteristics String JSON数组格式字符串

characteristics内对象结构

属性 类型 说明
uuid string 蓝牙设备特征值的 uuid
properties Object 该特征值支持的操作类型

properties 的结构

属性 类型 说明
read boolean 该特征值是否支持 read 操作
write boolean 该特征值是否支持 write 操作
notify boolean 该特征值是否支持 notify 操作
indicate boolean 该特征值是否支持 indicate 操作

示例代码

ble.getBLEDeviceCharacteristics({
    deviceId:'DDCC-EE-AA-BB-CC',
    serviceId:'0000-1902-C503'
},(res)=>{
    if(res.status=='2500'){
        let characteristics=JSON.parse(res.characteristics);
        console.log(characteristics);
    }
});

createBLEConnection(options,callback)

连接低功耗蓝牙设备。

若APP在之前已有搜索过某个蓝牙设备,并成功建立连接,可直接传入之前搜索获取的 deviceId 直接尝试连接该设备,无需进行搜索操作。

options 参数说明

属性 类型 是否必填 说明
deviceId string 蓝牙设备 id

callback 回调函数参数对象说明

属性 类型 说明
status String 接口调用状态
message String 状态说明

示例代码

ble.onBLEConnectionStateChange({},(res)=>{
    if(res.status=='2500'){
        //
        console.log(res.deviceId,'连接状态变化',res.connected);
    }
});
ble.createBLEConnection({
    deviceId:'DDCC-EE-AA-BB-CC'
},(res)=>{
    if(res.status=='2500'){
        //接口调用成功,请在onBLEConnectionStateChange 监听状态变化
    }
});

closeBLEConnection(options,callback)

断开与低功耗蓝牙设备的连接。

options 参数说明

属性 类型 是否必填 说明
deviceId string 蓝牙设备 id

callback 回调函数参数对象说明

属性 类型 说明
status String 接口调用状态
message String 状态说明

示例代码

ble.onBLEConnectionStateChange({},(res)=>{
    if(res.status=='2500'){
        //
        console.log(res.deviceId,'连接状态变化',res.connected);
    }
});
ble.closeBLEConnection({
    deviceId:'DDCC-EE-AA-BB-CC'
},(res)=>{
    if(res.status=='2500'){
        //接口调用成功,请在onBLEConnectionStateChange 监听状态变化
    }
});

addAutoReconnect(options,callback)

将设备加入断线重连队列中,设备断开后将自动进行重连操作

options 参数说明

属性 类型 是否必填 说明
deviceId string 蓝牙设备 id

callback 回调函数参数对象说明

属性 类型 说明
status String 接口调用状态
message String 状态说明

示例代码

ble.addAutoReconnect({
    deviceId:'DDCC-EE-AA-BB-CC'
},(res)=>{
    if(res.status=='2500'){
        //接口调用成功,已成功加入断线重连队列
    }
});

removeAutoReconnect(options,callback)

将设备从断线重连队列中移除,设备断开后不会自动重连,需要手动调用createBLEConnection重新连接

options 参数说明

属性 类型 是否必填 说明
deviceId string 蓝牙设备 id

callback 回调函数参数对象说明

属性 类型 说明
status String 接口调用状态
message String 状态说明

示例代码

ble.removeAutoReconnect({
    deviceId:'DDCC-EE-AA-BB-CC'
},(res)=>{
    if(res.status=='2500'){
        //接口调用成功,已成功从断线重连队列移除
    }
});

状态码status说明

status 说明
2500 操作成功
2501 蓝牙不可用
2502 设备未发现
2503 服务或特征等未找到
2504 不支持的操作
2505 未知系统错误
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright 2022 sand Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

简介

uni-app 蓝牙API插件 展开 收起
Java 等 3 种语言
Apache-2.0
取消

发行版 (1)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/wangqianjiao/sand-plugin-bluetooth.git
git@gitee.com:wangqianjiao/sand-plugin-bluetooth.git
wangqianjiao
sand-plugin-bluetooth
sand-plugin-bluetooth
master

搜索帮助