From 5d5bed66db9ad7f875aa968f5309304aa95eb936 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 12 Feb 2013 13:36:04 +0200 Subject: 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 --- .../libreoffice/impressremote/communication/BluetoothClient.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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: */ -- cgit