mini_program_gizwits_sdk 3.1.12-1 → 3.1.12-2

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.
package/README.md CHANGED
@@ -71,6 +71,9 @@ export default class Index extends Component {
71
71
  }
72
72
  ```
73
73
 
74
+ ## 📋 日志
75
+ sdk.setLogLevel("debug")
76
+
74
77
  ## 📖 BLE API
75
78
 
76
79
  小程序 BLE 相关 API。
package/dist/src/sdk.d.ts CHANGED
@@ -115,7 +115,7 @@ declare class GizwitsMiniSDK {
115
115
  private notiDeviceList;
116
116
  startAutoScan: () => void;
117
117
  stopAutoScan: () => void;
118
- setDeviceMeta: <K extends "isBind" | "productKey" | "mac" | "name" | "did" | "bleWorkStatus" | "rootDeviceId" | "bleDeviceID" | "remark" | "connectType" | "isOnline" | "isLanOnline" | "isBleOnline" | "host" | "wss_port" | "ctime">(curDev: IDevice, key: K, value: IDevice[K], force?: boolean) => void;
118
+ setDeviceMeta: <K extends "mac" | "name" | "productKey" | "did" | "bleWorkStatus" | "isBind" | "rootDeviceId" | "bleDeviceID" | "remark" | "connectType" | "isOnline" | "isLanOnline" | "isBleOnline" | "host" | "wss_port" | "ctime">(curDev: IDevice, key: K, value: IDevice[K], force?: boolean) => void;
119
119
  getVersion: () => {
120
120
  success: boolean;
121
121
  data: string;
@@ -29,7 +29,7 @@ export default class GizwitsWS {
29
29
  _onBindingChanged?: IEmptyFn;
30
30
  constructor({ appID, token, uid, limitSocketNum, }: IGWSProps);
31
31
  init(): Promise<IError>;
32
- _getDevice: (did: string) => IDevice | IError;
32
+ _getDevice: (did: string) => IError | IDevice;
33
33
  _getConnect: (device: IDevice) => Connection;
34
34
  _getDeviceAndConnect: (did: string) => IError | [IDevice, Connection];
35
35
  connectDevice: (device: IDevice) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mini_program_gizwits_sdk",
3
- "version": "3.1.12-1",
3
+ "version": "3.1.12-2",
4
4
  "description": "切换到es6打包,修正微信Promise不执行的问题",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {