From 4062895c64f5a164f1c2150cf8cf593a154ab0f7 Mon Sep 17 00:00:00 2001 From: brentru Date: Mon, 8 Jun 2020 11:27:57 -0400 Subject: [PATCH] stop the ethernet client --- src/AdafruitIO_Ethernet.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/AdafruitIO_Ethernet.h b/src/AdafruitIO_Ethernet.h index d8423484..6c6e4f5e 100644 --- a/src/AdafruitIO_Ethernet.h +++ b/src/AdafruitIO_Ethernet.h @@ -99,6 +99,16 @@ class AdafruitIO_Ethernet : public AdafruitIO { _status = AIO_NET_CONNECTED; } } + + /**************************************************************************/ + /*! + @brief Disconnect the ethernet connection. + */ + /**************************************************************************/ + void _disconnect() { + _client->stop(); + delay(AIO_NET_DISCONNECT_WAIT); + } }; #endif // ADAFRUITIO_ETHERNET_H