I'm trying to connect a remote device from Android via Bluetooth in .NET / C# with the following code:
const string GUID_RFCOMM_SERIALPORT = "00001101-0000-1000-8000-00805f9b34fb";
BluetoothDevice.CreateRfcommSocketToServiceRecord(UUID.FromString(GUID_RFCOMM_SERIALPORT));
... but I miss an option, to select a Service name
.
If I listen for incoming connections, I have to offer the service name:
BluetoothAdapter.ListenUsingRfcommWithServiceRecord("MyServiceName", UUID.FromString(GUID_RFCOMM_SERIALPORT));
How can I choose a special service name while connecting a remote Bluetooth device?