private void send(BluetoothDeviceInfo btDeviceInfo, string path)
{
BluetoothClient btClient = new BluetoothClient();
if (btDeviceInfo.Authenticated)
{
BluetoothSecurity.PairRequest(btDeviceInfo.DeviceAddress, "0000");
}
System.Uri uri = new Uri("obex://" + btDeviceInfo.DeviceAddress.ToString() + "/" + System.IO.Path.GetFileName(path));
ObexWebRequest request = new ObexWebRequest(uri);
request.ReadFile(path);
ObexWebResponse response = (ObexWebResponse)request.GetResponse();
response.Close();
}
I want to send files to the mobile, but in the way of aboveI just can send file one by one,Is there are any way to send the files together one time. eg: I send five files to the mobile bluetooth,the mobile user just need press button once to receive these files.
Thanks for answer!
zyylove2008