So I've got a little client program going, and I'm trying to connect to my device. Except that it can't resolve the address of the device.
BFBluetoothDiscoveryX discover = new BFBluetoothDiscoveryX();
BFBluetoothRadioX BRadio = discover.EnumRadios().get_Radio(0);
BluetoothFrameworkX.BFBluetoothDeviceX Device = null; ;
BluetoothFrameworkX.BFBluetoothDevicesX m_Devices = discover.Discovery(BRadio, true, true, true);
for (int i = 0; i < m_Devices.Count; i++)
{
Device = m_Devices.get_Device(i);
if (Device.Name.Contains("Number 4")) break;
}
//I Do get a device here
BFClientX client = new BFClientX();
client.Transport = BFAPITransportX.atBluetooth;
client.BluetoothTransport.Device = Device;
client.Open();
When I run this code, I get an error "Code 10049 - the requrested address is not valid in its context."