Skip to content

Commit 8780dd5

Browse files
author
brentru
committed
increase mqtt sub. limit for non 32u4/328p devices
1 parent 61f7524 commit 8780dd5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Adafruit_MQTT.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,13 @@
105105
#define MQTT_CONN_WILLFLAG 0x04
106106
#define MQTT_CONN_CLEANSESSION 0x02
107107

108-
// how many subscriptions we want to be able to track
109-
#define MAXSUBSCRIPTIONS 5
110-
111108
// how much data we save in a subscription object
112-
// eg max-subscription-payload-size
109+
// and how many subscriptions we want to be able to track.
113110
#if defined (__AVR_ATmega32U4__) || defined(__AVR_ATmega328P__)
111+
#define MAXSUBSCRIPTIONS 5
114112
#define SUBSCRIPTIONDATALEN 20
115113
#else
114+
#define MAXSUBSCRIPTIONS 15
116115
#define SUBSCRIPTIONDATALEN 100
117116
#endif
118117

0 commit comments

Comments
 (0)