rename all subclass diconnect() to disconnectServer()
This commit is contained in:
parent
4ab72be73e
commit
aa6db4d5f5
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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()) {
|
||||||
|
@ -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);
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user