public bool TransactionEvent(EzspFrameResponse ezspResponse) { if (ezspResponse.GetSequenceNumber() == _ezspTransaction.GetRequest().GetSequenceNumber() && ezspResponse is EzspInvalidCommandResponse) { // NCP doesn't support this command! TransactionComplete(); return(true); } // Check if this response completes our transaction if (!_ezspTransaction.IsMatch(ezspResponse)) { return(false); } TransactionComplete(); return(true); }