| 340 | // Stop the server |
| 341 | |
| 342 | void 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 |
no outgoing calls
no test coverage detected