This commit is contained in:
parent
5d133c3852
commit
ad6ae59725
@ -88,7 +88,7 @@ bool Adafruit_MQTT_Client::sendPacket(uint8_t *buffer, uint16_t len) {
|
|||||||
len -= ret;
|
len -= ret;
|
||||||
|
|
||||||
if (ret != sendlen) {
|
if (ret != sendlen) {
|
||||||
DEBUG_PRINTLN("Failed to send complete packet.");
|
DEBUG_PRINTLN("Failed to send packet.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -123,7 +123,7 @@ class Adafruit_MQTT_FONA : public Adafruit_MQTT {
|
|||||||
boolean ret = fona->TCPsend((char *)buffer, len);
|
boolean ret = fona->TCPsend((char *)buffer, len);
|
||||||
//DEBUG_PRINT(F("sendPacket returned: ")); DEBUG_PRINTLN(ret);
|
//DEBUG_PRINT(F("sendPacket returned: ")); DEBUG_PRINTLN(ret);
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
DEBUG_PRINTLN("Failed to send packet.")
|
DEBUG_PRINTLN("Failed to send packet.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user