add io.disconnect()

just calls the network _disconnect()
This commit is contained in:
Rick Sellens 2019-12-27 12:28:55 -05:00
parent 6201370d6f
commit c2b359d559
2 changed files with 16 additions and 0 deletions

View file

@ -160,6 +160,21 @@ void AdafruitIO::connect()
}
/**************************************************************************/
/*!
@brief Disconnects from AIO.
@return none
*/
/**************************************************************************/
void AdafruitIO::disconnect()
{
AIO_DEBUG_PRINTLN("AdafruitIO::disconnect()");
_disconnect();
}
/**************************************************************************/
/*!

View file

@ -53,6 +53,7 @@ class AdafruitIO {
virtual ~AdafruitIO();
void connect();
void disconnect();
aio_status_t run(uint16_t busywait_ms = 0, bool fail_fast = false);
AdafruitIO_Feed* feed(const char *name);