title: Bluetooth Serial Ionic 2
body: <p>I am trying to build a simple bluetooth serial app to connect to my arduino. I am using ionic2 to make android app.right now, all I am trying to do is list all the availabe bluetooth devices. Below is my code :</p>
  
  <pre><code>import { Component } from '@angular/core';
  import { BluetoothSerial } from 'ionic-native';
  import { NavController } from 'ionic-angular';
  
  @Component({
    selector: 'page-home',
    templateUrl: 'home.html'
  })
  export class HomePage {
  
  public working:string;
  public var2: string ;
  
  bluetoothSerial.isEnabled(
      function() {
          this.working= "Bluetooth is enabled";
      },
      function() {
          this.working="Bluetooth is *not* enabled";
      }
  );
  
  public lists = [];
  
  bluetoothSerial.discoverUnpaired(function(devices) {
      this.lists.push(devices);
  }, function(){  this.var2 = 'could not find any bluetooth device';});
  
    constructor() {  }
  
  }
  </code></pre>
  
  <p>Whenever I do ionic serve I do plenty of error, mainly because Bluetooth is not recognized (function implementation is missing). It also does not allow me to build app either.</p>
  
  <p>Please help on this.</p>
  
  <p>Thank you so much</p>