You've already forked Adafruit_MQTT_Library
mirror of
https://github.com/adafruit/Adafruit_MQTT_Library.git
synced 2025-07-29 02:02:00 +03:00
larger buffer for WS
This commit is contained in:
@ -34,7 +34,7 @@
|
|||||||
#define ADAFRUIT_MQTT_VERSION_PATCH 0
|
#define ADAFRUIT_MQTT_VERSION_PATCH 0
|
||||||
|
|
||||||
// Uncomment/comment to turn on/off debug output messages.
|
// Uncomment/comment to turn on/off debug output messages.
|
||||||
// #define MQTT_DEBUG
|
#define MQTT_DEBUG
|
||||||
// Uncomment/comment to turn on/off error output messages.
|
// Uncomment/comment to turn on/off error output messages.
|
||||||
#define MQTT_ERROR
|
#define MQTT_ERROR
|
||||||
|
|
||||||
@ -107,7 +107,7 @@
|
|||||||
// Largest full packet we're able to send.
|
// Largest full packet we're able to send.
|
||||||
// Need to be able to store at least ~90 chars for a connect packet with full
|
// Need to be able to store at least ~90 chars for a connect packet with full
|
||||||
// 23 char client ID.
|
// 23 char client ID.
|
||||||
#define MAXBUFFERSIZE (150)
|
#define MAXBUFFERSIZE (512)
|
||||||
|
|
||||||
#define MQTT_CONN_USERNAMEFLAG 0x80
|
#define MQTT_CONN_USERNAMEFLAG 0x80
|
||||||
#define MQTT_CONN_PASSWORDFLAG 0x40
|
#define MQTT_CONN_PASSWORDFLAG 0x40
|
||||||
@ -124,7 +124,7 @@
|
|||||||
#define SUBSCRIPTIONDATALEN 20
|
#define SUBSCRIPTIONDATALEN 20
|
||||||
#else
|
#else
|
||||||
#define MAXSUBSCRIPTIONS 15
|
#define MAXSUBSCRIPTIONS 15
|
||||||
#define SUBSCRIPTIONDATALEN 100
|
#define SUBSCRIPTIONDATALEN MAXBUFFERSIZE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class AdafruitIO_MQTT; // forward decl
|
class AdafruitIO_MQTT; // forward decl
|
||||||
|
Reference in New Issue
Block a user