écrit actuellement une application pour se connecter à l'appareil "BTLink Bluetooth Adaptateur série"Bluetooth Adaptateur série - Connexion Exception
Plus d'informations sur l'appareil: device specification ont créé un tel code:
BluetoothAddress btAddress = null;
if (!BluetoothAddress.TryParse(comboBoxDevices.SelectedValue.ToString().Trim(), out btAddress))
throw new Exception(String.Format("Adress: {0} wrong !", comboBoxDevices.SelectedValue.ToString().Trim()));
BluetoothEndPoint endPoint = new BluetoothEndPoint(btAddress, BluetoothService.DialupNetworking);
_bluetoothClient.Connect(endPoint);
J'ai testé deux types de GUID: BluetoothService.DialupNetworking, BluetoothService.SerialPort. J'ai reçu ce message: "Aucune connexion n'a pu être établie car la machine cible l'a refusée" Qu'est-ce qui ne va pas?
Meilleures salutations, Mykhaylo