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

feat(bluetooth-le): Allow specifying transport mode for Android #3571

Merged
merged 1 commit into from
Nov 19, 2020
Merged

feat(bluetooth-le): Allow specifying transport mode for Android #3571

merged 1 commit into from
Nov 19, 2020

Conversation

EinfachHans
Copy link
Contributor

@p-andreas
Copy link

p-andreas commented Nov 13, 2020

Thanks for raising this PR.

Until it is accepted I use the following workaround:

   const connectionParams = {
      address: deviceAddress,
      transport: 2, // required until https://github.com/ionic-team/ionic-native/pull/3571 is merged
      // magic value 2 is AndroidGattTransportMode TRANSPORT_LE
    } as {
      address: string;
      autoConnect?: boolean;
    };

  this.bluetooth.connect(connectionParams).subscribe( /* do something meaningful */);

@danielsogl danielsogl self-assigned this Nov 19, 2020
@danielsogl danielsogl added the target: patch This PR is targeted for the next patch release label Nov 19, 2020
@danielsogl danielsogl merged commit b3d5baa into danielsogl:master Nov 19, 2020
@EinfachHans EinfachHans deleted the ble-changes branch November 19, 2020 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants