private void Write() { string cmd = "*00AE0000#"; byte[] msg = System.Text.Encoding.Default.GetBytes(cmd); //bluetooth.Write(msg); Thread.Sleep(3000); bluetooth.Write(msg); }
private void radioButton_BT1_Open_CheckedChanged(object sender, EventArgs e) { if ((sender as RadioButton).Checked) { mBluetoothCode1[8] = 0x01; mBluetoothCode1[9] = 0x01; bluetooth.Write(mBluetoothCode1); } }