how i can auto searching devices and sending file with bluetooth using 32feet ,C#,WPf.
please take example for me.
tanks.
i searching the devices with this cod ,for example showing first device name in 1 label :
BluetoothDeviceInfo[] availableDevices;
var client = new BluetoothClient();
availableDevices = client.DiscoverDevices(); // I've found this to be SLOW!
int n = availableDevices.Length;
lbl1.Content = availableDevices[0].DeviceName;</pre>
and this cod trying to pairing to device:
<pre lang="cs">foreach (BluetoothDeviceInfo device in availableDevices)
{
if (!device.Authenticated)
{
continue;
}
var peerClient = new BluetoothClient();
peerClient.BeginConnect(device.DeviceAddress, BluetoothService.SerialPort, this.BluetoothListenerAcceptClientCallback, peerClient);
}</pre>
-how i can sending a file ?
-how i can conecting without pincode?