MCPcopy Create free account
hub / github.com/JoaoLopesF/RemoteDebug / stop

Method stop

src/RemoteDebug.cpp:342–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340// Stop the server
341
342void RemoteDebug::stop() {
343
344 // Stop Client
345
346 if (TelnetClient && TelnetClient.connected()) {
347 TelnetClient.stop();
348 }
349
350 // Stop server
351
352 TelnetServer.stop();
353
354#ifndef WEBSOCKET_DISABLED
355 // Stop web socket (RemoteDebugApp)
356
357 DebugWS.stop(); // stop the websocket server
358#endif
359
360}
361
362// Handle the connection (in begin of loop in sketch)
363// TODO: optimize when loop not have a large delay

Callers 6

handleMethod · 0.45
disconnectMethod · 0.45
processCommandMethod · 0.45
clientDisconnectMethod · 0.45
clientDisconnectMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected