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

"Mqtt-bidirectional" example enhancement suggestion, after inability to recieve packets on IoT device. #75

Open
bashuser1 opened this issue Jun 7, 2023 · 0 comments

Comments

@bashuser1
Copy link

This is an enhancement suggestion for the mqtt-bidirectional example. I tried this example but I went too quickly through the "Preparing your IDE" part because I already have PlatformIO installed, so I missed the instruction to set the MQTT_MAX_PACKET_SIZE. This caused my device to be unable to receive any messages via Ditto. It took me long to find the cause of the problem, because I first thought it is a problem of Ditto, not of any library.

There is a better way to correct the MQTT_MAX_PACKET_SIZE than editing the files of the library. You can just call client.setBufferSize(2048); before line 130.

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

1 participant