-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecation warnings for C++ wrapper.
- Loading branch information
Showing
1 changed file
with
57 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f42a72b
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.
@ralight Why is the C++ interface being deprecated? Is the C interface the preferred alternative?
f42a72b
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.
The C++ wrapper is an extremely thin wrapper around the C library that came about by an external request. At the time there were no other MQTT C++ libraries around. The Paho C++ library offers a better C++ experience that uses modern C++ features. I don't feel that the Mosquitto C++ wrapper is a sufficiently compelling offering over the C library by comparison.
f42a72b
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.
The Paho C++ library has currently the disadvantage that it is not included in the standard debian distribution and the library has other prerequisites.
I love your thin wrapper, because it is thin and very useful for easy projects. So it would be nice if this interface still will be supported.
f42a72b
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.
Well, I currently use the C++ Wrapper, but indeed, the first thing I did was to write a wrapper around the wrapper with a more C++ like API, e.g std::string references to replace Pointers to char... which is a bit baroque for my taste...