qcloud-iotexplorer-h5-panel-sdk
Advanced tools
Comparing version 1.2.7 to 1.2.8
{ | ||
"name": "qcloud-iotexplorer-h5-panel-sdk", | ||
"version": "1.2.7", | ||
"version": "1.2.8", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/release/qcloud-iotexplorer-h5-panel-sdk", |
@@ -198,2 +198,6 @@ # (DEPRECATED) qcloud-iotexplorer-h5-panel-sdk | ||
### sdk.getSubDeviceList(): Promise<{ subDeviceList: DeviceInfo[]; syncFailList: DeviceInfo[] }>; | ||
拉取网关设备的子设备列表 | ||
### sdk.navBack: () => Promise | ||
@@ -555,3 +559,3 @@ 调用 wx.miniProgram.navigateBack 返回上一级页面 | ||
#### sdk.addAdapter: (DeviceAdapter) => void; | ||
#### sdk.blueToothAdapter.addAdapter: (DeviceAdapter) => void; | ||
添加一个设备适配器,默认无任何设备适配器,使用时需要根据具体设备情况创建一个设备适配器,并将其构造函数添加到蓝牙适配器中。 | ||
@@ -664,2 +668,17 @@ | ||
#### blueToothAdapter.reportDeviceInfo({ productId: string, deviceName: string, deviceInfo: any }); | ||
上报设备信息,deviceInfo参考代码: | ||
``` | ||
deviceInfo: { | ||
"module_hardinfo": "模组具体硬件型号 N10", | ||
"module_softinfo": "模组软件版本", | ||
"fw_ver": "mcu固件版本", | ||
"imei": "设备imei号,可选上报", | ||
"mac": "设备mac地址,可选上报", | ||
"device_label": { | ||
"append_info": "设备商自定义的产品附加信息" | ||
} | ||
``` | ||
#### 事件 | ||
@@ -666,0 +685,0 @@ ##### blueToothAdapter.on('adapterStateChange', ({ available, discovering }) => {}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
301852
898