Skip to content

Commit

Permalink
feat(Beacon): 新增蓝牙Beacon 协议 (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZengBeauty committed Jan 29, 2021
1 parent f71ebda commit 5fedcfb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/layout/offline-view/index.js
Expand Up @@ -168,7 +168,9 @@ export default class OfflineView extends Component {
const isBle = !!NumberUtils.getBitValue(capability, 10);
const isBleMesh = !!NumberUtils.getBitValue(capability, 11);
const isSigMesh = !!NumberUtils.getBitValue(capability, 15);
const isBleDevice = isBle || isBleMesh || isSigMesh;
// 新增蓝牙 Beacon 协议
const isBleBeacon = !!NumberUtils.getBitValue(capability, 21);
const isBleDevice = isBle || isBleMesh || isSigMesh || isBleBeacon;

// 如果是蓝牙设备,设备在线,但网络离线时不需要显示遮罩
if (deviceOnline && isBleDevice) {
Expand Down

0 comments on commit 5fedcfb

Please sign in to comment.