-
add the execution commands for the pub/sub example for completeness.
-
Fixed
-
Add documentation blocks to the class and its functions.
-
General comments:
The build only succeeds after I commented out add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/osdev_versioning) in the versioning submodule. ( mqtt-cpp/versioning/cmake/osdevversion.cmake )
Consider adding a small description to the functions in the submodules script. -
mentioned in commit 482663fa1cbeef7e5c4afb129eb644a868a58234
-
Status changed to merged
started a discussion
on the diff
README.md
0 → 100644
| 21 | + * Change to the repo and run the submodules script : | |
| 22 | + ``` | |
| 23 | + $ cd mqtt-cpp | |
| 24 | + $ scripts/setup_submodules -i | |
| 25 | + ``` | |
| 26 | + This will add the cmake directory and versioning. | |
| 27 | + * Create a build directory and start the build. | |
| 28 | + ``` | |
| 29 | + $ mkdir build | |
| 30 | + $ cd build | |
| 31 | + $ cmake ../ | |
| 32 | + $ gmake | |
| 33 | + ``` | |
| 34 | +And you're all set. In build/bin there are two examples, test_mqtt_pu and test_mqtt_sub. Have a broker running, | |
| 35 | +like mosquitto or flashmq capable of accepting anonymous connections. Start the "sub" part and couple of moments | |
| 36 | +later the "pub" part. If all went well, you should see two screens in sync running. | |
| 2 |
|
|
started a discussion
on the diff
examples/pub/publisher.h
0 → 100644
| 16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | |
| 17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | |
| 18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | |
| 19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | |
| 20 | + * DEALINGS IN THE SOFTWARE. * | |
| 21 | + * ***************************************************************************/ | |
| 22 | +#pragma once | |
| 23 | + | |
| 24 | +// std | |
| 25 | +#include <memory> | |
| 26 | +#include <string> | |
| 27 | + | |
| 28 | +// osdev::components::mqtt | |
| 29 | +#include "mqttclient.h" | |
| 30 | +#include "compat-c++14.h" | |
| 31 | + | |
| 1 |
|
|