[Libreoffice-commits] core.git: android/sdremote
Tor Lillqvist
tml at iki.fi
Tue Feb 12 03:43:47 PST 2013
android/sdremote/src/org/libreoffice/impressremote/communication/BluetoothClient.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit 5d5bed66db9ad7f875aa968f5309304aa95eb936
Author: Tor Lillqvist <tml at iki.fi>
Date: Tue Feb 12 13:36:04 2013 +0200
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
diff --git a/android/sdremote/src/org/libreoffice/impressremote/communication/BluetoothClient.java b/android/sdremote/src/org/libreoffice/impressremote/communication/BluetoothClient.java
index a4fd1ef..b395169 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: */
More information about the Libreoffice-commits
mailing list