From 0bf1b2f7b52cb0499c484eb135178867709dd0c5 Mon Sep 17 00:00:00 2001 From: Peter M. Groen Date: Tue, 25 Jan 2022 09:48:45 +0100 Subject: [PATCH] Fixed script. --- .gitignore | 1 + README.md | 13 +++++++++++-- scripts/setup_submodules | 7 ++++--- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 6bb82a4..5618acc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ ./build/ ./build/* +./CMakeLists.txt.user diff --git a/README.md b/README.md index 9647e78..1de7430 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Modern, asynchronous and fast C++ client for paho-mqtt ( paho-c ). * Fully autonomous reconnecting # Dependencies -The only dependency is to libpaho-mqtt3a.so. CHanges are there is a version for your platform ( Debian, Fedora, CentOS ). +The only dependency is to libpaho-mqtt3a.so. Changes are there is a version for your platform ( Debian, Fedora, CentOS ). Just check your package manager for the correct package-name. # Tutorial @@ -34,4 +34,13 @@ Just check your package manager for the correct package-name. And you're all set. In build/bin there are two examples, test_mqtt_pu and test_mqtt_sub. Have a broker running, like mosquitto or flashmq capable of accepting anonymous connections. Start the "sub" part and couple of moments later the "pub" part. If all went well, you should see two screens in sync running. -One is sending, the other is receiveing. + + ``` + Open terminal 1 + $ bin/test_mqtt_sub + + Open terminal 2 + $ bin/test_mqtt_pub + ``` +Screen 2 is sending, Screen 1 is receiving. + diff --git a/scripts/setup_submodules b/scripts/setup_submodules index 45effbd..cd5f202 100755 --- a/scripts/setup_submodules +++ b/scripts/setup_submodules @@ -1,6 +1,6 @@ -#!/bin/bash -x +#!/bin/bash # ================= -# = Do not chenge. +# = Do not change. # ================= GIT_URL_SUBS="http://gitlab.osdev.nl/open_source" FUNC_RESULT="" @@ -66,7 +66,8 @@ function get_submodules() git submodule update --init --recursive } -function update_submodules() { +function update_submodules() +{ git submodule update --recursive } -- libgit2 0.21.4