Skip to content

Commit

Permalink
add template
Browse files Browse the repository at this point in the history
  • Loading branch information
lvjie0519 committed Jul 30, 2020
1 parent e0e307e commit 35c4273
Show file tree
Hide file tree
Showing 88 changed files with 8,132 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/createProject.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions bin/template/ble/index.ios.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import "./index.js";
28 changes: 28 additions & 0 deletions bin/template/ble/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

import { Package } from 'miot';

import App from './main';

/**
* 自动BLE/Mesh设备升级检查,即使设置了alertDialog为true,也仅仅会在直连完成后才弹窗,红点进插件就可以显示
* @param redPoit 红点
* @param alertDialog 弹窗
* @param authType 蓝牙连接类型(0: 普通小米蓝牙协议设备(新接入设备已废弃该类型),1: 安全芯片小米蓝牙设备(比如锁类产品) 4: Standard Auth 标准蓝牙认证协议(通常2019.10.1之后上线的新蓝牙设备) 5: mesh 设备)
* @since 10039
* @example
* Package.BLEAutoCheckUpgradeOptions = {
* enable: true,
* redPoint: true,
* alertDialog: true,
* authType: 5
* }
*/
Package.BLEAutoCheckUpgradeOptions = {
enable: true,
redPoint: true,
alertDialog: true,
authType: 4 // 此处值需要开发者根据具体蓝牙设备类型来做相关修改
};

Package.entry(App, () => {});

Loading

0 comments on commit 35c4273

Please sign in to comment.