Socket
Socket
Sign inDemoInstall

uclean-mesh-plugin

Package Overview
Dependencies
2
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    uclean-mesh-plugin

wifi mesh配网


Version published
Weekly downloads
21
increased by2000%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

插件安装与卸载

卸载插件

npm uninstall uclean-mesh-plugin

安装插件

npm install uclean-mesh-plugin

在android/app/src/main/java/com/ujing/franchisee/MainActivity.java 的init方法中增加 add( UcleanMeshPlugin.class );
this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{
  // Additional plugins you've installed go here
  // Ex: add(TotallyAwesomePlugin.class);
  add( UcleanMeshPlugin.class );
}});

js调用方法

开始组网
const { UcleanMeshPlugin } = Capacitor.Plugins;
const result = await UcleanMeshPlugin.startConnectMeshBleDevice({
  macAddress: "",
  ssid: "",
  bssid: "",
  password: "",
  meshId: "",
  meshPassword: "",
});
参数
{
  macAddress: "",
  ssid: "",
  bssid: "",
  password: "",
  meshId: "",
  meshPassword: "",
}
返回值格式
{
  errorCode: string,//错误码
  errorMessage: string,//错误信息
}
停止组网
const { UcleanMeshPlugin } = Capacitor.Plugins;
const result = await UcleanMeshPlugin.stopConnectMeshBleDevice();
返回值格式
{
  errorCode: string,//定位错误码
  errorMessage: string,//错误信息
  }
获取已连接的wifi信息
const { UcleanMeshPlugin } = Capacitor.Plugins;
const result = await UcleanMeshPlugin.obtainWifiInfo();
返回值格式
{
  errorCode: string,
  errorMessage: string,
  result:[]
}

Keywords

FAQs

Last updated on 14 Feb 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc