public void startLeScan(String deviceName, String mac, QNBleScanCallback callback) {
if (isAppIdReady(callback)) {
if (this.mBluetoothAdapter == null) {
this.mBluetoothAdapter = ((BluetoothManager) this.mContext.getSystemService
("bluetooth")).getAdapter();
}
if (this.mBluetoothAdapter == null) {
callback.onCompete(4);
} else if (!this.mContext.getPackageManager().hasSystemFeature("android.hardware" +
".bluetooth_le")) {
callback.onCompete(6);
} else if (this.mBluetoothAdapter.isEnabled()) {
this.bleScan.start(this.mBluetoothAdapter, deviceName, mac, callback);
} else {
callback.onCompete(7);
}
}
}
QNApiImpl.java 文件源码
java
阅读 41
收藏 0
点赞 0
评论 0
项目:boohee_v5.6
作者:
评论列表
文章目录