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

UUID problem #3

Open
ghost opened this issue Aug 26, 2014 · 1 comment
Open

UUID problem #3

ghost opened this issue Aug 26, 2014 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 26, 2014

Hi! i was trying to make a BT connection with an specific device (it's some kind of a pressure checker or something like that, just a black box that sends a stream of bytes by bluetooth) and it wasn't connecting to the app. The error was that InputStream.read() was returning -1.
The cause of this is the UUID: I got the UUID of the device ( device.getUuids()[0].getUuid() ) and changed the creation of the socket on the method "connect()" and passed that UUID as a parameter. After that, it works.
Thanks fot the app!

@ghost
Copy link
Author

ghost commented Aug 26, 2014

sorry, the method is: public ConnectThread(...)

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

No branches or pull requests

0 participants