コード例 #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()));
     }
 }