예제 #1
0
 public static bool CanNotify(this IGattCharacteristic ch) =>
 ch.Properties.HasFlag(CharacteristicProperties.Notify) ||
 ch.Properties.HasFlag(CharacteristicProperties.NotifyEncryptionRequired) ||
 ch.CanIndicate();
예제 #2
0
 public static bool CanNotifyOrIndicate(this IGattCharacteristic ch) => ch.CanNotify() || ch.CanIndicate();