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

Bluetooth classic modifications #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hargoyal
Copy link

  • Now bluetooth classic is able to connect and communicate fluently.

  • Just need to update from
    socket = device.createRfcommSocketToServiceRecord(DEFAULT_UUID);

    with

    socket =(BluetoothSocket) device.getClass().getMethod("createRfcommSocket", new Class[] {int.class}).invoke(device,1);

- Now bluetooth classic is able to connect and communicate fluently.
- Just need to update from
  socket =  device.createRfcommSocketToServiceRecord(DEFAULT_UUID);

  with

  socket =(BluetoothSocket) device.getClass().getMethod("createRfcommSocket", new Class[] {int.class}).invoke(device,1);

  - Refer Link: https://stackoverflow.com/a/25647197/6151137
@Erhannis
Copy link
Owner

Hi! Sorry; I just figured out how to see a list of issues raised on any of my repos.
Your pull request had a lot of stuff in it whose purpose was unclear or looked like debugging, so I used the code from the stackoverflow post you mentioned - thanks! Does the latest commit do what you want?

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.

2 participants