Example #1
0
 public BLEException(BLEErrorCode errorCode)
     : base(errorCode.ToString())
 {
     ErrorCode = errorCode;
 }
 private void RaiseWriteFailed(BLEErrorCode code)
 => WriteFailed?.Invoke(this, new BLEErrorEventArgs(code));
 public BLEErrorEventArgs(BLEErrorCode errorCode)
 {
     ErrorCode = errorCode;
 }
Example #4
0
 private void RaiseReadRSSIFailed(BLEErrorCode code)
 => ReadRSSIFailed?.Invoke(this, new BLEErrorEventArgs(code));
Example #5
0
 private void RaiseDiscoverServicesFailed(BLEErrorCode code)
 => DiscoverServicesFailed?.Invoke(this, new BLEErrorEventArgs(code));
Example #6
0
 private void RaiseConnectionLost(BLEErrorCode code)
 => ConnectionLost?.Invoke(this, new BLEErrorEventArgs(code));
Example #7
0
 private void RaiseConnectFailed(BLEErrorCode code)
 => ConnectFailed?.Invoke(this, new BLEErrorEventArgs(code));
 private void RaiseDiscoverDescriptorsFailed(BLEErrorCode code)
 => DiscoverDescriptorsFailed?.Invoke(this, new BLEErrorEventArgs(code));
 private void RaiseSetNotificationFailed(BLEErrorCode code)
 => SetNotificationFailed?.Invoke(this, new BLEErrorEventArgs(code));
Example #10
0
 private void RaiseDiscoverCharacteristicsFailed(BLEErrorCode code)
 => DiscoverCharacteristicsFailed?.Invoke(this, new BLEErrorEventArgs(code));