1
0
mirror of https://github.com/adafruit/Adafruit_MQTT_Library.git synced 2025-06-16 08:20:55 +03:00

shorter suback timeout

This commit is contained in:
ladyada
2016-07-08 15:21:47 -04:00
parent bb240928e8
commit 9ed79466b2
3 changed files with 10 additions and 4 deletions

View File

@ -82,7 +82,7 @@ bool Adafruit_MQTT_Client::sendPacket(uint8_t *buffer, uint16_t len) {
// send 250 bytes at most at a time, can adjust this later based on Client
uint16_t sendlen = min(len, 250);
Serial.print("Sending: "); Serial.println(sendlen);
//Serial.print("Sending: "); Serial.println(sendlen);
ret = client->write(buffer, sendlen);
DEBUG_PRINT(F("Client sendPacket returned: ")); DEBUG_PRINTLN(ret);
len -= ret;