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

Personalization of UUID in bluetooth connection #398

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Personalization of UUID in bluetooth connection #398

wants to merge 2 commits into from

Conversation

gmittone
Copy link

Allow to set a user-defined UUID to connect to.
This method does not change any method call, but it would be great to pass a new paramether in the connect method or create a specific method and keep the ionic-native up-to-date.

@@ -241,7 +241,7 @@ public boolean execute(String action, CordovaArgs args, CallbackContext callback
discoverIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, discoverableDuration);
cordova.getActivity().startActivity(discoverIntent);

} else {
} else {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are we changing this formatting?

@@ -129,8 +129,7 @@ module.exports = {

setDiscoverable: function (discoverableDuration) {
cordova.exec(null, null, "BluetoothSerial", "setDiscoverable", [discoverableDuration]);
}

},

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this necessary?

Copy link

@darran-kelinske-fivestars darran-kelinske-fivestars left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like this PR - thank you

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

Successfully merging this pull request may close these issues.

3 participants