diff --git a/libraries/SocketWrapper/src/MbedServer.h b/libraries/SocketWrapper/src/MbedServer.h index 23017e296..6b6362376 100644 --- a/libraries/SocketWrapper/src/MbedServer.h +++ b/libraries/SocketWrapper/src/MbedServer.h @@ -41,13 +41,15 @@ class MbedServer : public arduino::Server { MbedServer(uint16_t port) : _port(port){}; - virtual ~MbedServer() { + virtual ~MbedServer() { end(); } + void begin(); + void end() { if (sock) { delete sock; sock = nullptr; } - } - void begin(); + }; + void stop() { end(); }; virtual size_t write(uint8_t); virtual size_t write(const uint8_t *buf, size_t size); uint8_t status();
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: