Skip to content

fix(mosquitto) make mosquitto component c++ compatible #819

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

0xFEEDC0DE64
Copy link
Contributor

fixes #816 and #817

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.

Thank you for posting fixes to your own issues 👍

Just please amend the commit message -> "fix(mosq): Make mosquit......"

Comment on lines +7 to 11
#ifdef __cplusplus
extern "C" {
#endif
#include "mosquitto.h"
#include "esp_tls.h"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nitpick: please place the C++ sentinels below the includes.

Suggested change
#ifdef __cplusplus
extern "C" {
#endif
#include "mosquitto.h"
#include "esp_tls.h"
#include "mosquitto.h"
#include "esp_tls.h"
#ifdef __cplusplus
extern "C" {
#endif

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.

mosquitto: ISO C++ forbids converting a string constant to 'char*' (IDFGH-15418)
2 participants