diff --git a/Adafruit_MQTT_CC3000.cpp b/Adafruit_MQTT_CC3000.cpp index 5d25b2c..f2584d8 100644 --- a/Adafruit_MQTT_CC3000.cpp +++ b/Adafruit_MQTT_CC3000.cpp @@ -101,3 +101,7 @@ uint16_t Adafruit_MQTT_CC3000::readPacket(uint8_t *buffer, uint8_t maxlen, uint1 } return len; } + +int32_t Adafruit_MQTT_CC3000::close(void) { + return mqttclient.close(); +} diff --git a/Adafruit_MQTT_CC3000.h b/Adafruit_MQTT_CC3000.h index 53f7c11..d02a7eb 100644 --- a/Adafruit_MQTT_CC3000.h +++ b/Adafruit_MQTT_CC3000.h @@ -11,6 +11,7 @@ class Adafruit_MQTT_CC3000 : public Adafruit_MQTT { Adafruit_MQTT_CC3000(Adafruit_CC3000 *cc3k, char *server, uint16_t port, char *user, char *key); int8_t connect(void); uint16_t readPacket(uint8_t *buffer, uint8_t maxlen, uint16_t timeout); + int32_t close(void); private: Adafruit_CC3000 *cc3000;