Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs on set/get buffer size contradicting #1015

Open
jpmeijers opened this issue Jun 9, 2023 · 1 comment
Open

Docs on set/get buffer size contradicting #1015

jpmeijers opened this issue Jun 9, 2023 · 1 comment

Comments

@jpmeijers
Copy link

The documention at https://pubsubclient.knolleary.net/api#setBufferSize refers to MQTT_MAX_MESSAGE_SIZE and that the default size is 256 bytes. Later on the same page https://pubsubclient.knolleary.net/api#setBufferSize it refers to MQTT_MAX_PACKET_SIZE with default size 128 bytes.

Looking at the source code the currently used define is calle MQTT_MAX_PACKET_SIZE and has a default size of 256 bytes.

@superbool
Copy link

I guess **MQTT_MAX_MESSAGE_SIZE ** is old used, and the doc not changed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants