-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Conversation
Codecov Report
@@ 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.
|
doc/reference/networking/mqtt.rst
Outdated
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"); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, thank you.
There was a problem hiding this 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.
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]>
Add high-level documentation for MQTT library.
Fixes #12957.
Signed-off-by: Robert Lubos [email protected]