You've already forked Adafruit_MQTT_Library
mirror of
https://github.com/adafruit/Adafruit_MQTT_Library.git
synced 2025-06-14 21:02:25 +03:00
This commit is contained in:
@ -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 {
|
||||||
|
Reference in New Issue
Block a user