Search

Bluetooth COM programming

SerialPort BluetoothConnection= new SerialPort(); 
BluetoothConnection.PortName = "COM7"; 
// Replace this COM port by the appropriate one on your computer
BluetoothConnection.Open(); 
BluetoothConnection.ReadTimeout = 1500; 
BluetoothConnection.Write(Command, 0, Command.Length); 
for(int i=0;i