mini_program_gizwits_sdk 3.2.20 → 3.2.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +9 -1
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -90,13 +90,21 @@ sdk.setLogLevel("debug")
90
90
 
91
91
  初始化 sdk 蓝牙能力。使用其他`BLE API`前**必须**进行初始化。
92
92
 
93
- ### sdk.scanBleDevice(delay?:number)
93
+ ### sdk.scanBleDevice(delay?:number, services?: string[])
94
94
 
95
95
  搜索蓝牙设备。搜索到的蓝牙设备会被 [onScanListChange](#onScanListChange) 事件监听。
96
96
 
97
97
  #### 参数
98
98
 
99
99
  - delay: 超时时间。
100
+ - services: 过滤services的条件,不传默认 ['ABF8', 'ABF0', 'F0AB', 'F8AB']
101
+
102
+ ### sdk.startAutoScan(services?: string[])
103
+
104
+ 间隔自动搜索蓝牙设备 [onScanListChange](#onScanListChange) 事件监听。
105
+
106
+ #### 参数
107
+ - services: 过滤services的条件,不传默认 ['ABF8', 'ABF0', 'F0AB', 'F8AB']
100
108
 
101
109
  ### sdk.deviceSafetyRegister(Object object)
102
110
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mini_program_gizwits_sdk",
3
- "version": "3.2.20",
4
- "description": "增加蓝牙搜索services参数",
3
+ "version": "3.2.21",
4
+ "description": "更新文档",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
7
7
  "test": "node_modules/mocha/bin/_mocha -r ts-node/register tests/**/*.spec.ts -file ./tests/setup-wx.js -timeout 60s",