Home > Net >  C # winform control bluetooth module to transmit data
C # winform control bluetooth module to transmit data

Time:10-04

Recent need to use PC control bluetooth module connected with mobile phone blue yan,
Bluetooth module is taobao buy USB bluetooth module,
Using InTheHand.Net.Personal class library
Examples are all you need to set up online pin but actual pin number is invalid, the online demo feeling all have problems
Who can control the bluetooth module for automatic matching with cell phone? To specify the pin hopes have the example to fallen hopelessly

BluetoothAddress DeviceAddress=deviceAddresses [listBox1 SelectedItem. ToString ());
Blueclient. SetPin (DeviceAddress, textBox1. Text. The Trim ()); //that a specified pin is invalid
Blueclient. Connect (DeviceAddress, BluetoothService Handsfree);

CodePudding user response:

His ~ ~ ~ ~ ~ ~,

CodePudding user response:

Someone? They look forward to a great god reply

CodePudding user response:

Sell module didn't provide, speaking, reading and writing classes or dynamic library?

CodePudding user response:

The landlord to solve the matching problem? I do this, I also use the USB bluetooth tried, or not, but matched once, even if broken, back links don't need pairing again,
According to android development, said if bluetooth is 4.0, at least don't need pairing code between equipment and devices,

CodePudding user response:

Bluetooth 4.0 + is don't need a PIN,
BluetoothAddress DeviceAddress=sendAddress;
//bluetooth 4.0 above without PIN
Blueclient. Connect (DeviceAddress, BluetoothService. SerialPort);
  •  Tags:  
  • C#
  • Related