We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
bellow code selectDevice(address) { let alert = this.alertCtrl.create({ title: 'Connect', message: 'Do you want to connect with?', buttons: [ { text: 'Cancel', role: 'cancel', handler: () => { console.log('Cancel clicked'); } }, { text: 'Connect', handler: () => { //this.bluetoothSerial.connectInsecure(address).subscribe(this.success, this.fail); console.log("Connected Conn " + address); this.bluetoothSerial.connect(address).subscribe((data:Observable) => {
console.log("Connect " + JSON.stringify(data)); this.bluetoothSerial.available().then(data =>{ console.log("Available " + JSON.stringify(data)); this.bluetoothSerial.read().then(data =>{ console.log("Read " + JSON.stringify(data)); this.navCtrl.push(WelcomePage,data); }); }); }, fail => { console.log("Connected Error : " + JSON.stringify(fail)); }); } } ] }); alert.present();
}
The text was updated successfully, but these errors were encountered:
When I'm using Bluetooth Classic on Android I try and pair the device with the phone before running my app.
See #114 for some code that lets you programmatically enter a PIN. I haven't merged that pull request since it uses private apis.
Sorry, something went wrong.
No branches or pull requests
bellow code
selectDevice(address)
{
let alert = this.alertCtrl.create({
title: 'Connect',
message: 'Do you want to connect with?',
buttons:
[
{
text: 'Cancel',
role: 'cancel',
handler: () => {
console.log('Cancel clicked');
}
},
{
text: 'Connect',
handler: () =>
{
//this.bluetoothSerial.connectInsecure(address).subscribe(this.success, this.fail);
console.log("Connected Conn " + address);
this.bluetoothSerial.connect(address).subscribe((data:Observable) => {
}
The text was updated successfully, but these errors were encountered: