Exemplo n.º 1
0
 public BLEException(BLEErrorCode errorCode)
     : base(errorCode.ToString())
 {
     ErrorCode = errorCode;
 }
Exemplo n.º 2
0
 private void RaiseWriteFailed(BLEErrorCode code)
 => WriteFailed?.Invoke(this, new BLEErrorEventArgs(code));
 public BLEErrorEventArgs(BLEErrorCode errorCode)
 {
     ErrorCode = errorCode;
 }
Exemplo n.º 4
0
 private void RaiseReadRSSIFailed(BLEErrorCode code)
 => ReadRSSIFailed?.Invoke(this, new BLEErrorEventArgs(code));
Exemplo n.º 5
0
 private void RaiseDiscoverServicesFailed(BLEErrorCode code)
 => DiscoverServicesFailed?.Invoke(this, new BLEErrorEventArgs(code));
Exemplo n.º 6
0
 private void RaiseConnectionLost(BLEErrorCode code)
 => ConnectionLost?.Invoke(this, new BLEErrorEventArgs(code));
Exemplo n.º 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));
Exemplo n.º 10
0
 private void RaiseDiscoverCharacteristicsFailed(BLEErrorCode code)
 => DiscoverCharacteristicsFailed?.Invoke(this, new BLEErrorEventArgs(code));