Skip to content

Commit

Permalink
add message if wrong pubsubclient library used
Browse files Browse the repository at this point in the history
  • Loading branch information
1technophile committed Apr 13, 2019
1 parent 5bc0d4d commit 9eb6320
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions OpenMQTTGateway.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}

Expand Down

2 comments on commit 9eb6320

@2114L3
Copy link

@2114L3 2114L3 commented on 9eb6320 May 19, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you fork and rename pubsubclient since you have dependencies on the changes
as lots of other projects use the original pubsubclient which you could conflict with.

@1technophile
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, maybe the best way is to propose the modifications on pubsubclient main repo

Please sign in to comment.