src/plugins/bluetoothSerial.js
function (address) {
        var q = $q.defer();
        $window.bluetoothSerial.connectInsecure(address, function () {
          q.resolve();
        }, function (error) {
          q.reject(error);
        });
        return q.promise;
      }
function (address) {
        var q = $q.defer();
        $window.bluetoothSerial.connectInsecure(address, function () {
          q.resolve();
        }, function (error) {
          q.reject(error);
        });
        return q.promise;
      }
function ( address ) { var q = $q . defer ( ) ; $window . bluetoothSerial . connectInsecure ( address , function ( ) { q . resolve ( ) ; } , function ( error ) { q . reject ( error ) ; } ) ; return q . promise ; }
not supported on iOS
not supported on iOS