Skip to content

doc: Add MQTT high-level description #13125

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

Merged
merged 1 commit into from
Feb 9, 2019

Conversation

rlubos
Copy link
Collaborator

@rlubos rlubos commented Feb 7, 2019

Add high-level documentation for MQTT library.

Fixes #12957.

Signed-off-by: Robert Lubos [email protected]

@codecov-io
Copy link

codecov-io commented Feb 7, 2019

Codecov Report

Merging #13125 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #13125   +/-   ##
=======================================
  Coverage   48.73%   48.73%           
=======================================
  Files         315      315           
  Lines       46540    46540           
  Branches    10743    10743           
=======================================
  Hits        22679    22679           
  Misses      19349    19349           
  Partials     4512     4512

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d9da0b0...9624551. Read the comment docs.

client_ctx.broker = &broker;
client_ctx.evt_cb = mqtt_evt_handler;
client_ctx.client_id.utf8 = (u8_t *)"zephyr_mqtt_client";
client_ctx.client_id.size = strlen("zephyr_mqtt_client");
Copy link
Member

Choose a reason for hiding this comment

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

It probably does not matter much for example code but it is better to write this

client_ctx.client_id.size = sizeof("zephyr_mqtt_client") - 1;

That way we avoid a function call as the sizeof() is evaluated at compile time.

Copy link
Member

@nashif nashif left a comment

Choose a reason for hiding this comment

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

nice, thank you.

Copy link
Contributor

@dbkinder dbkinder left a comment

Choose a reason for hiding this comment

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

Nice documentation. I've added some spelling and grammar fixes.

@rlubos
Copy link
Collaborator Author

rlubos commented Feb 8, 2019

Thank you @dbkinder for review and suggestions, I've updated the PR.

Add high-level documentation for MQTT library.

Signed-off-by: Robert Lubos <[email protected]>
@nashif nashif merged commit d942c1d into zephyrproject-rtos:master Feb 9, 2019
@rlubos rlubos deleted the mqtt-add-docs branch February 18, 2019 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants