Since 5.2 version (I wrote that in other topic, but want repeat again) BTF supports new MultiAPIs(tm) technology. About this technology you can read by following link:
http://forum.btframework.com/index.php?topic=188.msg634;topicseen#msg634But here I want to explain some stuffs.
Now each component require specifing the working Radio (Radio in this context is a local Bluetooth dongle (radio module) installed on the PC). You probably asked: How to select working radio. Firstly, I recomend to read this topic:
http://forum.btframework.com/index.php?topic=161.0Also, I provide some code here to make it clean for understanding (VB.NET code):
BFAPIInfo,
BFBluetoothDiscoveryX and
BFObjectPushClient should be placed on the form.
Dim Radios As BluetoothFramework.BFBluetoothRadiosX
Dim Radio As BluetoothFramework.BFBluetoothRadioX
Dim Devices as BluetoothFramework.BFBluetoothDevicesX
If BFAPIInfo.Transport.atBluetooth = 1 Then
Radios = BFBluetoothDiscvoery.EnumRadios()
If TypeName(Radios) <> "Nothing" Then
Try
If Radios.Count > 0 Then
Radio = Radios.Radio(0)
If TypeName(Radio) <> "Nothing" Then
Try
Devices = BFBluetoothDiscoveryX.Discvoery(Radio, False, False, True)
If TypeName(Devices) <> "Nothing" Then
Try
If Devices.Count > 0 Then
BFObjectPushClientX.BluetoothTransport.Device = Devices.Device(0)
BFObjectPushClientX.BluetoothTransport.Radio = Radio
BFObjectPushClientX.Open()
Try
BFObjectPushClientX.Put(FileName)
Catch
Finally
BFObjectPushClientX.Close()
End Try
End If
Catch
Finally
Devices = Nothing
End Try
End If
Catch
Finally
Radio = Nothing
End Try
End If
End If
Catch
Finally
Radios = Nothing
End Try
End If
End If