add close()

This commit is contained in:
ladyada 2015-05-31 19:02:42 -04:00
parent 16123f9d04
commit 0a943076c9
2 changed files with 5 additions and 0 deletions

View File

@ -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();
}

View File

@ -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;