Я хочу отправить текстовое сообщение с ПК на мобильный через Bluetooth, и я написал этот код
private void send_text()
{ BluetoothRadio.PrimaryRadio.Mode = RadioMode.Discoverable;
bluetoothClient = new BluetoothClient();
for (int i = 0; i < sayi; i++)
{
InTheHand.Net.BluetoothAddress adres = this.adres_dizisi[i];
try
{
bluetoothClient.Connect(new BluetoothEndPoint((BluetoothAddress)adres,service));
// in this line error
// socketexception was found The requested address is not valid in its context InTheHand.Net.BluetoothEndPoint
System.Net.Sockets.NetworkStream straem = bluetoothClient.GetStream();
StreamWriter steramWriter = new StreamWriter(straem);
steramWriter.WriteLine("! 0 200 200 210 1");
// more stuff here.
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
Что я могу сделать, чтобы решить эту проблему? .. Пожалуйста, помогите мне ..