summaryrefslogtreecommitdiff
path: root/android/sdremote
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-02-12 13:36:04 +0200
committerTor Lillqvist <tml@iki.fi>2013-02-12 13:43:10 +0200
commit5d5bed66db9ad7f875aa968f5309304aa95eb936 (patch)
tree62130e147cd56183bd09e1e05e7a4a484b91eac5 /android/sdremote
parenta315af8ef47c2a9c774f3ffd7820091368a9aa5b (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
Diffstat (limited to 'android/sdremote')
-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: */