Merge pull request #703 from don-willingham/update_error

Increase minimum packet size to 475 in #error
This commit is contained in:
Theo Arends 2017-08-08 14:28:28 +02:00 committed by GitHub
commit 48635f0906
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 #endif
#if (MQTT_MAX_PACKET_SIZE -TOPSZ -7) < MESSZ // If the max message size is too small, throw an error at compile time #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 // 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 #endif
#include <Ticker.h> // RTC, HLW8012, OSWatch #include <Ticker.h> // RTC, HLW8012, OSWatch