Skip to content

Commit 96880c0

Browse files
committed
larger buffer for WS
1 parent 1e33ece commit 96880c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Adafruit_MQTT.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#define ADAFRUIT_MQTT_VERSION_PATCH 0
3535

3636
// Uncomment/comment to turn on/off debug output messages.
37-
// #define MQTT_DEBUG
37+
#define MQTT_DEBUG
3838
// Uncomment/comment to turn on/off error output messages.
3939
#define MQTT_ERROR
4040

@@ -107,7 +107,7 @@
107107
// Largest full packet we're able to send.
108108
// Need to be able to store at least ~90 chars for a connect packet with full
109109
// 23 char client ID.
110-
#define MAXBUFFERSIZE (150)
110+
#define MAXBUFFERSIZE (512)
111111

112112
#define MQTT_CONN_USERNAMEFLAG 0x80
113113
#define MQTT_CONN_PASSWORDFLAG 0x40
@@ -124,7 +124,7 @@
124124
#define SUBSCRIPTIONDATALEN 20
125125
#else
126126
#define MAXSUBSCRIPTIONS 15
127-
#define SUBSCRIPTIONDATALEN 100
127+
#define SUBSCRIPTIONDATALEN MAXBUFFERSIZE
128128
#endif
129129

130130
class AdafruitIO_MQTT; // forward decl

0 commit comments

Comments
 (0)