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

Bluetooth não conecta (Unable to connect to device) #27

Open
micheltlutz opened this issue Apr 17, 2017 · 0 comments
Open

Bluetooth não conecta (Unable to connect to device) #27

micheltlutz opened this issue Apr 17, 2017 · 0 comments

Comments

@micheltlutz
Copy link

Olá, estou utilizando BluetoothSerial para o ionc 2 conforme costa no site:

Bluetooth serial

O list funciona e apresenta os devices pareados corretamente mas não consigo conectar no que preciso(TECLAST_H30-4157) uma smartband.

Meu Cóigo
`this.bluetoothSerial.isEnabled().then(res => {

		this.bluetoothSerial.list().then(res => {
			console.log("list", res);
		}).catch(res => {
			console.log('Fail1!');
			console.log(res);
		});
		this.bluetoothSerial.connect('00:11:67:BC:E6:94').subscribe(res => {
			console.log("connect",res);
		}, err =>{
			console.log("err - connect",err);
		});


		this.bluetoothSerial.isConnected().then(res => {
			console.log("isConnected",res);
		}).catch(res => {
			console.log('Fail2!');
			console.log("res", res);
		});

	}).catch(res => {
		console.log('Fail!');
	});`

quando tento conectar o mesmo cai no catch Fail2! e logo após connect Unable to connect to device main.js:57206 no error do subscrible do connect

Permissões ok no config.xml já tentei com outro dispositivo e sem sucesso...
Alguma dica?!

@micheltlutz micheltlutz changed the title Bluetooth não conecta (connect Unable to connect to device) Bluetooth não conecta (Unable to connect to device) Apr 17, 2017
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