Private Sub BFSerialPortClientX_OnData(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BFSerialPortClientX.OnData
Dim Data As BluetoothFrameworkX.BFByteArrayX
Data = New BluetoothFrameworkX.BFByteArrayX()
Dim Size As Integer
Size = 255
BFSerialPortClientX.Read(Data, Size, False)
edSerialData.Text = edSerialData.Text + Data.AsString
Dim url As String
url = Data.AsString
Dim webClient As New System.Net.WebClient
url = "http://" + url
webClient.DownloadFile(url, "C:\blue\1.html")
edSerialData.Text = url
BFFileTransferClientX.OpenDevice()
'BFFileTransferClientX.Transport = BluetoothFrameworkX.BFAPITransportX.atBluetooth
'// atIrDA, atCOM
'BFFileTransferClientX.BluetoothTransport.Address = ("00:11:9F:D4:A6:0B")
' BFFileTransferClientX.Open()
'BF1.BluetoothTransport.Address = "00:11:9F:D4:A6:0B"
'BFFileTransferClientX.Transport = BluetoothFrameworkX.BFAPITransportX.atBluetooth
'BFFileTransferClientX.BluetoothTransport.Address = "(00:11:9F:D4:A6:0B)"
'BFFileTransferClientX.Open()
BFFileTransferClientX.Put("C:\blue\1.html")
End Sub
the commented part is given by u in the forum
we are basically facing problem in automating the process of sending the file from pc
we don want to follow the dialog box method to send data from pc to mobile
" 'BFFileTransferClientX.Open() "
the control stucks at the above line in the code
pls help us out mike
we are doing a project for sharing the internet of pc on mobile device using the bluetooth connection
so we need to send in the webpages requested from phone to pc back to the phone
help us out