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_client: fix esp_mqtt_client_enqueue for len=0 #226

Merged
merged 1 commit into from Jun 8, 2022

Conversation

kewley
Copy link
Contributor

@kewley kewley commented May 30, 2022

Updated esp-idf to latest master and saw a problem were messages sent with esp_mqtt_client_enqueue appeared to send but no data was seen. Bisecting pointed to commit 372b323 (mqtt_client: Fix mqtt send long data error, 2021-12-21).

The length calculation was removed from esp_mqtt_client_enqueue_priv and added to esp_mqtt_client_publish. However, it appears esp_mqtt_client_enqueue was missed. Currently calls to esp_mqtt_client_enqueue appear to send no data, fix this by adding the length calculation to esp_mqtt_client_enqueue.

Commit 372b323 (mqtt_client: Fix mqtt send long data error, 2021-12-21)
removed the length calculation from esp_mqtt_client_enqueue_priv and
added it to esp_mqtt_client_publish. However, esp_mqtt_client_enqueue
was missed. Currently calls to esp_mqtt_client_enqueue appear to send no
data, fix this by adding the length calculation to esp_mqtt_client_enqueue.
Copy link
Collaborator

@david-cermak david-cermak left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@david-cermak david-cermak merged commit 7a31a55 into espressif:master Jun 8, 2022
@kewley kewley deleted the buxfix/fix_enqueue branch June 13, 2022 13:56
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

2 participants