Increase minimum packet size to 475 in #error

This commit is contained in:
Don Willingham 2017-08-07 22:05:32 -04:00
parent 934d6e3f15
commit 25632ff7f8
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ enum opt_t {P_HOLD_TIME, P_MAX_POWER_RETRY, P_MAX_PARAM8}; // Index in sysCf
#endif
#if (MQTT_MAX_PACKET_SIZE -TOPSZ -7) < MESSZ // If the max message size is too small, throw an error at compile time
// See pubsubclient.c line 359
#error "MQTT_MAX_PACKET_SIZE is too small in libraries/PubSubClient/src/PubSubClient.h, increase it to at least 467"
#error "MQTT_MAX_PACKET_SIZE is too small in libraries/PubSubClient/src/PubSubClient.h, increase it to at least 475"
#endif
#include <Ticker.h> // RTC, HLW8012, OSWatch