From 9eb632001cf512147ae08e589ed80ce238ea93ff Mon Sep 17 00:00:00 2001 From: Florian <1technophile@users.noreply.github.com> Date: Sat, 13 Apr 2019 12:56:41 +0200 Subject: [PATCH] add message if wrong pubsubclient library used --- OpenMQTTGateway.ino | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenMQTTGateway.ino b/OpenMQTTGateway.ino index 24cd6ba8..b21c2b68 100644 --- a/OpenMQTTGateway.ino +++ b/OpenMQTTGateway.ino @@ -362,6 +362,9 @@ void setup() trc(F("MQTT_MAX_PACKET_SIZE")); trc(MQTT_MAX_PACKET_SIZE); + #if defined(ESP8266) || defined(ESP32) || defined(__AVR_ATmega2560__) || defined(__AVR_ATmega1280__) + if(MQTT_MAX_PACKET_SIZE == 128) trc(F("WRONG PUBSUBCLIENT LIBRARY USED PLEASE INSTALL THE ONE FROM OMG LIB FOLDER")); + #endif trc(F("Setup OpenMQTTGateway end")); }