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 {
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();
......
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