MCPcopy Create free account
hub / github.com/BruceDevices/firmware / resetClientState

Function resetClientState

src/modules/wifi/clients.cpp:192–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192void resetClientState(ClientProtocol protocol) {
193 withClientLock([&]() {
194 closeSessionLogUnlocked();
195 activeProtocol = protocol;
196 queuedCommand = "";
197 queuedOutput = "";
198 queuedPromptPrefix = "> ";
199 queuedPromptContext = "";
200 pendingTerminalLine = "";
201 terminalLiveInput = "";
202 pendingEchoSuppression = "";
203 sessionStatus = "";
204 sessionReady = false;
205 sessionActive = false;
206 sessionClosed = false;
207 sessionFailed = false;
208 sessionConnecting = false;
209 stopSessionRequested = false;
210 previousOutputWasCR = false;
211 awaitingTabDebugResponse = false;
212 });
213}
214
215void markSessionConnecting() {
216 withClientLock([&]() {

Callers 2

ssh_setupFunction · 0.85
telnet_setupFunction · 0.85

Calls 2

withClientLockFunction · 0.85
closeSessionLogUnlockedFunction · 0.85

Tested by

no test coverage detected