Kaydet (Commit) 5d5bed66 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

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
üst a315af8e
...@@ -42,6 +42,10 @@ public class BluetoothClient extends Client { ...@@ -42,6 +42,10 @@ public class BluetoothClient extends Client {
BluetoothDevice aDevice = mAdapter BluetoothDevice aDevice = mAdapter
.getRemoteDevice(aServer.getAddress()); .getRemoteDevice(aServer.getAddress());
mAdapter.cancelDiscovery(); 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 mSocket = aDevice.createRfcommSocketToServiceRecord(UUID
.fromString("00001101-0000-1000-8000-00805F9B34FB")); .fromString("00001101-0000-1000-8000-00805F9B34FB"));
mSocket.connect(); mSocket.connect();
...@@ -84,4 +88,4 @@ public class BluetoothClient extends Client { ...@@ -84,4 +88,4 @@ public class BluetoothClient extends Client {
} }
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment