ESP32 and boot message "WRONG PUBSUBCLIENT LIBRARY..."

After the boot of my ESP32 with the last version of OpenMQTTGateway v0.9.3 I see a message on my console
" WRONG PUBSUBCLIENT LIBRARY USED PLEASE INSTALL THE ONE FROM RELEASE PAGE"

but why ? I didn’t use the manage libray of Arduino IDE, but I’ve download all the library from https://github.com/1technophile/OpenMQTTGateway/releases/download/v0.9.3/esp32dev-all-libraries.zip

My log from arduino ide is :
ResolveLibrary(PubSubClient.h)
-> candidates: [PubSubClient_ID89@2.7]
and
Alternatives for ArduinoJson.h: [ArduinoJson_ID64@5.13.4]
ResolveLibrary(ArduinoJson.h)

What can I do ?

Hello,

This is strange, this messge fire up when the
MQTT_MAX_PACKET_SIZE is set to 128.
For an esp it should be at 1024.

Could you try to set :
#define MQTT_MAX_PACKET_SIZE 1024
Into pubsubclient.h

Perfect !!! Works like a charm :slight_smile:
Now I can receive very long messages :slight_smile:

1 Like

Thanks for the feedback, I will see if I can find a way to set it automaticaly.

1 Like