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
fix for long packets on cc3k
This commit is contained in:
@ -127,7 +127,7 @@ class Adafruit_MQTT_CC3000 : public Adafruit_MQTT {
|
|||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool sendPacket(uint8_t *buffer, uint8_t len) {
|
bool sendPacket(uint8_t *buffer, uint16_t len) {
|
||||||
if (mqttclient.connected()) {
|
if (mqttclient.connected()) {
|
||||||
uint16_t ret = mqttclient.write(buffer, len);
|
uint16_t ret = mqttclient.write(buffer, len);
|
||||||
DEBUG_PRINT(F("sendPacket returned: ")); DEBUG_PRINTLN(ret);
|
DEBUG_PRINT(F("sendPacket returned: ")); DEBUG_PRINTLN(ret);
|
||||||
|
Reference in New Issue
Block a user