예제 #1
0
 private void Gatt_CharacteristicChanged(object sender, CharacteristicEventArgs e)
 {
     if (e.Characteristic == _characteristic)
     {
         characteristicValueChanged?.Invoke(this, EventArgs.Empty);
     }
 }
예제 #2
0
 private void Gatt_CharacteristicChanged(object sender, CharacteristicEventArgs e)
 {
     if (e.Characteristic == _characteristic)
     {
         OnCharacteristicValueChanged(new GattCharacteristicValueChangedEventArgs(e.Characteristic.GetValue()));
     }
 }