private void BLETest() { string MAC = "a8:10:87:6a:f7:e8"; bluetooth = new BluetoothLECode(_serviceGuid, _writeCharacteristicGuid, _notifyCharacteristicGuid); bluetooth.ValueChanged += Bluetooth_ValueChanged; bluetooth.SelectDeviceFromIdAsync(MAC); }
private void FormBluetoothLE_Load(object sender, EventArgs e) { maskedTextBox_BT1_Address.Text = "65A7"; maskedTextBox_BT2_Address.Text = "65C2"; mBluetoothInfoList = new List <BluetoothInfo>(); //var bluetooth = new BluetoothLECode(_serviceGuid, _writeCharacteristicGuid, _notifyCharacteristicGuid); //bluetooth = new BluetoothLECode("", "", ""); bluetooth = new BluetoothLECode(characterUUID0, characterUUID3, ""); bluetooth.ValueChanged += Bluetooth_ValueChanged; bluetooth.BLEInfoEvent += Bluetooth_BLEInfoEvent; SetByteList(); }