You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the cordova plugin bluetoothle, but I can’t scan any device, only appear my macbook in list
You know why?
I try with empty array in services, and with filter 'fc12', that is my device. but only appears my mac, see the attachment.
Hi,
I am using the cordova plugin bluetoothle, but I can’t scan any device, only appear my macbook in list
You know why?
I try with empty array in services, and with filter 'fc12', that is my device. but only appears my mac, see the attachment.
this is the code:
bluetoothle.initialize(initializeSuccess, initializeError);
function initializeSuccess(obj) {
myApp.alert(JSON.stringify(obj));
params = '{'+
'"services": ['+
'"180D",'+
'"fc12"'+
'],'+
'"allowDuplicates": false'+
'"scanMode": bluetoothle.SCAN_MODE_LOW_LATENCY,'+
'"matchMode": bluetoothle.MATCH_MODE_AGGRESSIVE,'+
'"matchNum": bluetoothle.MATCH_NUM_MAX_ADVERTISEMENT,'+
'"callbackType": bluetoothle.CALLBACK_TYPE_ALL_MATCHES,'+
'}';
bluetoothle.startScan(initializeSuccess2,initializeError2,params);
}
function initializeError(obj) {
myApp.alert(JSON.stringify(obj));
}
function initializeSuccess2(obj) {
myApp.alert(JSON.stringify(obj));
}
function initializeError2(obj) {
myApp.alert(JSON.stringify(obj));
}
The text was updated successfully, but these errors were encountered: