public void Reset() { _buf.Clear(); _timersManager.StopAllTimers(); _message = ""; _completed = false; _state = States.WaitEstablishmentPhase; _previousFN = 0; _currentRecord = ""; }
public void ResetAndUpload(string message) { _timersManager.StopAllTimers(); _frameCounter = -1; _exceptionOccured = null; _errorCounterNAK = 0; _errorCounterENQ = 0; _errorCounterDefective = 0; _currentFrame = null; _uploadCompleted = false; _state = States.EstablishmentPhaseBegin; _message = message; _frames = FrameUtils.SplitToFrames(message, _lowLevelSettings); }