Adafruit_MQTT_Library icon indicating copy to clipboard operation
Adafruit_MQTT_Library copied to clipboard

Change to uint16_t to support messages > 255 bytes

Open jwende opened this issue 7 years ago • 6 comments

https://github.com/adafruit/Adafruit_MQTT_Library/blob/974f4b8713a83d01b040a0d23b798d3f2978d990/Adafruit_MQTT.cpp#L228

Cheers Joerg

jwende avatar Dec 10 '17 11:12 jwende

Jeorg, do if this is the only thing in the code that needs to be changed to support larger messages? I am still having problems sending messages > 100 bytes....

Thanks.

rareearthmagnet avatar Feb 21 '18 00:02 rareearthmagnet

You will also need to increase the size of MAXBUFFERSIZE in Adafruit_mqtt.h (line #98)

jjunimd avatar Jul 26 '18 14:07 jjunimd

that is correct (and there might be another issue with the 23 byte limit of the device identifier ... this had been removed in MQTT 3.1.1)

jwende avatar Jul 26 '18 16:07 jwende

By "device identifier" do you mean the server? The feed name? Since these are URLs, what portion of them counts toward the 23 byte limit?

jjunimd avatar Jul 26 '18 16:07 jjunimd

sorry - Client Identifier The Client Identifier (ClientId) identifies the Client to the Server. Server may allow client identifies larger than 23 bytes (http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718028)

jwende avatar Jul 26 '18 17:07 jwende

Thanks!

jjunimd avatar Aug 08 '18 10:08 jjunimd