Skip to content

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