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; }
private void RaiseReadRSSIFailed(BLEErrorCode code) => ReadRSSIFailed?.Invoke(this, new BLEErrorEventArgs(code));
private void RaiseDiscoverServicesFailed(BLEErrorCode code) => DiscoverServicesFailed?.Invoke(this, new BLEErrorEventArgs(code));
private void RaiseConnectionLost(BLEErrorCode code) => ConnectionLost?.Invoke(this, new BLEErrorEventArgs(code));
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));
private void RaiseDiscoverCharacteristicsFailed(BLEErrorCode code) => DiscoverCharacteristicsFailed?.Invoke(this, new BLEErrorEventArgs(code));