summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-02-12 13:36:04 +0200
committerMichael Meeks <michael.meeks@suse.com>2013-02-13 11:31:44 +0000
commit86474f20dd66d2bc2366cf103335ec7043bf8191 (patch)
treecf69bf56a2946b206cb8b4d87e50f95e013d84cb /android
parentc46cb184038309106e1797e071d9d17ed80f3114 (diff)
Tell what 00001101-0000-1000-8000-00805F9B34FB is
Fun that we have to reverse engineer and document magic numbers in our own code. Code written less than a year ago. Change-Id: I02b7697e7e02b85c8df78acda8f943c9b0628359 Signed-off-by: Michael Meeks <michael.meeks@suse.com>
Diffstat (limited to 'android')
-rw-r--r--android/sdremote/src/org/libreoffice/impressremote/communication/BluetoothClient.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/android/sdremote/src/org/libreoffice/impressremote/communication/BluetoothClient.java b/android/sdremote/src/org/libreoffice/impressremote/communication/BluetoothClient.java
index a4fd1ef5345e..b3951693eb83 100644
--- a/android/sdremote/src/org/libreoffice/impressremote/communication/BluetoothClient.java
+++ b/android/sdremote/src/org/libreoffice/impressremote/communication/BluetoothClient.java
@@ -42,6 +42,10 @@ public class BluetoothClient extends Client {
BluetoothDevice aDevice = mAdapter
.getRemoteDevice(aServer.getAddress());
mAdapter.cancelDiscovery();
+ // This is the "standard UUID for the Serial Port Profile".
+ // I.e. the 16-bit SerialPort UUID 0x1101 inserted into the
+ // Bluetooth BASE_UUID. See
+ // https://www.bluetooth.org/Technical/AssignedNumbers/service_discovery.htm
mSocket = aDevice.createRfcommSocketToServiceRecord(UUID
.fromString("00001101-0000-1000-8000-00805F9B34FB"));
mSocket.connect();
@@ -84,4 +88,4 @@ public class BluetoothClient extends Client {
}
}
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ \ No newline at end of file
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */