Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

qcloud-iotexplorer-h5-panel-sdk

Package Overview
Dependencies
Maintainers
3
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qcloud-iotexplorer-h5-panel-sdk - npm Package Compare versions

Comparing version 1.2.7 to 1.2.8

2

package.json
{
"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 }) => {})

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc