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

Update API doc about timeout configs when timer is dummy #128

Merged

Conversation

aggarw13
Copy link
Contributor

@aggarw13 aggarw13 commented Dec 8, 2020

When the application uses a dummy MQTTGetCurrentTimeFunc_t timer that always returns zero, there can be an infinite loop if the default values for the send/receive timeout configurations are used and no data is sent/received in the calls to the transport interface send/receive functions.

To avoid this behavior, the MQTT_RECV_POLLING_TIMEOUT_MS and MQTT_SEND_RETRY_TIMEOUT_MS MUST be set to zero when using a dummy timer function. This PR updates the API documentation accordingly.

@gkwicker gkwicker merged commit 037a251 into FreeRTOS:main Dec 8, 2020
@aggarw13 aggarw13 deleted the doc/timeout-configs-with-dummy-timer branch December 8, 2020 23:33
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

Successfully merging this pull request may close these issues.

None yet

3 participants