Closed defrag86 closed 10 years ago
Sorry, the org.bcsphere.bleprofiles plugin is deprecated. We merge the bluetooth profiles into org.bcsphere.bluetooth plugin , execute 'cordova plugin add https://github.com/bcsphere/bluetooth.git' to install it in your project, and use 'cordova plugin remove org' to remove it. you can use the profiles immediately.
this is an example to use the profile in project, hope it help. :)
var findmeProfile = {};
var isAlerting = false;
document.addEventListener('deviceready',function(){
findmeProfile = new BC.FindMeProfile();
});
function device_alert(){
var device = new BC.Device({deviceAddress:DEVICEADDRESS,deviceName:"O-Click",isConnected:false,type:DEVICETYPE});
device.connect(function(){
if(!isAlerting){
findmeProfile.high_alert(device);
isAlerting = true;
}else{
findmeProfile.no_alert(device);
isAlerting = false;
}
);
}
ok thank you, I also noticed you removed the bleprofiles project, so nothing to remark. I consider this issue closed from my part.
b.r.
hi I get this issue while fetching the plugin via cordova
similar behavior if I get bluetooth plugin alone: it creates a hierarchy named/plugins/org.
I see in plugin.xml of org.bcsphere.bluetooth that id tag (5th line) is set to org.
is there a way to have both plugins interacting?