Reputation: 1
I want my c# program to react on button press of a Bluetooth headset, but I'm stuck trying to connect.
I use InTheHand.Net.Sockets and I can find the wanted device. So I think, the following lines are clear:
BluetoothClient BTC = ...
BluetoothDeviceInfo HSI = Devices[aName];
InTheHand.Net.BluetoothAddress btAdress = HSI.DeviceAddress;
After this I should call
BTC.BeginConnect(btAdress, ???
But I don't know which value I have to use for Guid service in order to be able to query the buttons later.
Upvotes: 0
Views: 229