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 APIs to detect partial sends as failures #127

Merged
merged 47 commits into from
Dec 8, 2020

Conversation

aggarw13
Copy link
Contributor

@aggarw13 aggarw13 commented Dec 7, 2020

All library API functions call sendPacket to send an entire MQTT packet over the network.
With the addition of a send timeout (with MQTT_SEND_RETRY_TIMEOUT_MS configuration) in PR #124, the APIs should detect partial packet (or zero bytes) transmission as send failures.

This PR updates the MQTT_Connect, MQTT_Disconnect, MQTT_Subscribe, MQTT_Unsubscibe and MQTT_Ping API functions to return MQTTSendFailed for partial packet transmissions.

Note: The MQTT_Publish function was updated for the same already in PR#124

aggarw13 and others added 30 commits December 3, 2020 03:05
Co-authored-by: Muneeb Ahmed <54290492+muneebahmed10@users.noreply.github.com>
Copy link
Contributor

@gkwicker gkwicker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment

source/core_mqtt.c Show resolved Hide resolved
@gkwicker gkwicker merged commit 510a3f6 into FreeRTOS:main Dec 8, 2020
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

4 participants