fix for long packets on cc3k

This commit is contained in:
ladyada 2016-07-12 15:20:43 -04:00
parent 2d03ae9c89
commit dfc670deeb
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ class Adafruit_MQTT_CC3000 : public Adafruit_MQTT {
return len;
}
bool sendPacket(uint8_t *buffer, uint8_t len) {
bool sendPacket(uint8_t *buffer, uint16_t len) {
if (mqttclient.connected()) {
uint16_t ret = mqttclient.write(buffer, len);
DEBUG_PRINT(F("sendPacket returned: ")); DEBUG_PRINTLN(ret);