Skip to content

Commit

Permalink
if the smartphone doesn't support the BLE scan,only start the classic…
Browse files Browse the repository at this point in the history
…al scan.
  • Loading branch information
lizhijumacc committed Jun 3, 2014
1 parent ce80c50 commit babddac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bc.js
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,8 @@
function startDefaultScan(uuids){
if(API == "ios"){
BC.bluetooth.startScan(uuids);
}else if(API == "classical"){
BC.bluetooth.startClassicalScan();
}else{
startDefaultScanImpl(uuids);
BC.bluetooth.scanIntervalIndex = setInterval(function(){
Expand Down Expand Up @@ -1037,6 +1039,7 @@
this.deviceAddress = arg.deviceAddress;
this.deviceName = arg.deviceName;
this.advertisementData = arg.advertisementData;

this.isConnected = arg.isConnected;
this.services = [];
this.isPrepared = false;
Expand Down

0 comments on commit babddac

Please sign in to comment.