Sonoff-MQTT-OTA icon indicating copy to clipboard operation
Sonoff-MQTT-OTA copied to clipboard

Add define for MQTT_MAX_PACKET_SIZE

Open tbnobody opened this issue 8 years ago • 0 comments

Instead of editing the pubsubclient.h file you could just change the code from:

#ifdef USE_MQTT
  #include <PubSubClient.h>                 // MQTT
#endif  // USE_MQTT

to:

#ifdef USE_MQTT
  #define MQTT_MAX_PACKET_SIZE 400
  #include <PubSubClient.h>                 // MQTT
#endif  // USE_MQTT

tbnobody avatar Jan 12 '17 20:01 tbnobody