From 25632ff7f8106a73849ae1a026653acbe39d9b7d Mon Sep 17 00:00:00 2001 From: Don Willingham Date: Mon, 7 Aug 2017 22:05:32 -0400 Subject: [PATCH] Increase minimum packet size to 475 in #error --- sonoff/sonoff.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonoff/sonoff.ino b/sonoff/sonoff.ino index d1b211f2d..1cda5a168 100644 --- a/sonoff/sonoff.ino +++ b/sonoff/sonoff.ino @@ -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 // RTC, HLW8012, OSWatch