Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a141ecff authored by Nick Pelly's avatar Nick Pelly Committed by Android (Google) Code Review
Browse files

Merge "Add documentation to help developers make an RFCOMM conection to a...

Merge "Add documentation to help developers make an RFCOMM conection to a Bluetooth serial board. They all use a well-known UUID that is not really explained anywhere official, and this always trips developers up."
parents 4b69fea6 ea5056e5
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -664,6 +664,10 @@ public final class BluetoothDevice implements Parcelable {
     * determine which channel to connect to.
     * <p>The remote device will be authenticated and communication on this
     * socket will be encrypted.
     * <p>Hint: If you are connecting to a Bluetooth serial board then try
     * using the well-known SPP UUID 00001101-0000-1000-8000-00805F9B34FB.
     * However if you are connecting to an Android peer then please generate
     * your own unique UUID.
     * <p>Requires {@link android.Manifest.permission#BLUETOOTH}
     *
     * @param uuid service record uuid to lookup RFCOMM channel