Using your Bluetooth Terminal I have successfully created a connection to bluetootn device (HC-05 + arduino).
But using the example from "googlesamples/android-BluetootnChat" i can't connect to it.
Can you share corrected source code or explain how to solve the problem?
I using android studio, import sample - BluetootnChat, trying to connect (secure or unsecure) and receive "Unable to connect message" shortly, without prompting for entering password for bluetooth pairing.
3 則留言:
Hello!
Using your Bluetooth Terminal I have successfully created a connection to bluetootn device (HC-05 + arduino).
But using the example from "googlesamples/android-BluetootnChat" i can't connect to it.
Can you share corrected source code or explain how to solve the problem?
I using android studio, import sample - BluetootnChat, trying to connect (secure or unsecure) and receive "Unable to connect message" shortly, without prompting for entering password for bluetooth pairing.
Please help if u can. Thank's!
You need to change the UUID in BluetoothChatService to
private static final UUID MY_UUID_SECURE =
UUID.fromString("00001101-0000-1000-8000-00805F9B34FB");
This is the the well-known SPP UUID.
That's all I had to do to make BluetoothChat app to work.
Hi,
Can you tell me in which order or format the sensor values are displaying while receiving data from device.?
張貼留言