Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ble bond doesn't work #129

Open
easy2dev opened this issue Nov 18, 2016 · 1 comment
Open

Ble bond doesn't work #129

easy2dev opened this issue Nov 18, 2016 · 1 comment

Comments

@easy2dev
Copy link

Hi,

When i bonding the device, not popp appear on android 6.0.1.
I use jaalee beacon.

Please Help.
my source code
console.log('BEACON init');

bluetoothle.startScan( function (device){
	if( device.adress == 'E2:3D:76:A1:63:BA'){
		console.log('BNBeacon smart');
		bluetoothle.stopScan(function(){},function(){});
		bluetoothle.bond(function(state){
			if (state == 'bonded' || state == 'unknown')
			{
				console.log('Yess');
				//LIBeacon_Connect(device);
				
			}
			else if (state == 'bonding')
			{
				console.log('Bonding in progress')
			}
			else if (state == 'unbonded')
			{
				console.log('Bonding aborted');
				//LIBeacon_Init();
			}				
		}, function(error){console.log('bond error :'+error)}, device);
	}
});	
@ghost
Copy link

ghost commented Nov 24, 2016

Hi, I have seen too that no pairing dialog appear, and I have not seen any logic in it.

Sometimes a notification appears that opens the paring dialog when selected, somethings nothing at all is displayed, and sometimes the paring dialog is shown as expected.

It might be that paring for BLE is not fully mature. There could of course also be bugs in the plugin code.

What you can try is to call unbond and bond again. I found it quite tricky to make pairing/bonding work reliably and consistent, on Android as well as on iOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant