rename all subclass diconnect() to disconnectServer()

This commit is contained in:
Todd Treece 2015-10-05 14:18:49 -04:00
parent 4ab72be73e
commit aa6db4d5f5
4 changed files with 4 additions and 4 deletions

View File

@ -81,7 +81,7 @@ class Adafruit_MQTT_CC3000 : public Adafruit_MQTT {
return mqttclient.connected(); return mqttclient.connected();
} }
bool disconnect() { bool disconnectServer() {
if (connected()) { if (connected()) {
return (mqttclient.close() == 0); return (mqttclient.close() == 0);
} }

View File

@ -33,7 +33,7 @@ bool Adafruit_MQTT_Client::connectServer() {
return r != 0; return r != 0;
} }
bool Adafruit_MQTT_Client::disconnect() { bool Adafruit_MQTT_Client::disconnectServer() {
// Stop connection if connected and return success (stop has no indication of // Stop connection if connected and return success (stop has no indication of
// failure). // failure).
if (client->connected()) { if (client->connected()) {

View File

@ -43,7 +43,7 @@ class Adafruit_MQTT_Client : public Adafruit_MQTT {
{} {}
bool connectServer(); bool connectServer();
bool disconnect(); bool disconnectServer();
bool connected(); bool connected();
uint16_t readPacket(uint8_t *buffer, uint8_t maxlen, int16_t timeout, uint16_t readPacket(uint8_t *buffer, uint8_t maxlen, int16_t timeout,
bool checkForValidPubPacket = false); bool checkForValidPubPacket = false);

View File

@ -51,7 +51,7 @@ class Adafruit_MQTT_FONA : public Adafruit_MQTT {
return fona->TCPconnect(server, portnum); return fona->TCPconnect(server, portnum);
} }
bool disconnect() { bool disconnectServer() {
return fona->TCPclose(); return fona->TCPclose();
} }