Commit 0bf1b2f7b52cb0499c484eb135178867709dd0c5
1 parent
e0b1fe64
Fixed script.
Showing
3 changed files
with
16 additions
and
5 deletions
.gitignore
README.md
@@ -10,7 +10,7 @@ Modern, asynchronous and fast C++ client for paho-mqtt ( paho-c ). | @@ -10,7 +10,7 @@ Modern, asynchronous and fast C++ client for paho-mqtt ( paho-c ). | ||
10 | * Fully autonomous reconnecting | 10 | * Fully autonomous reconnecting |
11 | 11 | ||
12 | # Dependencies | 12 | # Dependencies |
13 | -The only dependency is to libpaho-mqtt3a.so. CHanges are there is a version for your platform ( Debian, Fedora, CentOS ). | 13 | +The only dependency is to libpaho-mqtt3a.so. Changes are there is a version for your platform ( Debian, Fedora, CentOS ). |
14 | Just check your package manager for the correct package-name. | 14 | Just check your package manager for the correct package-name. |
15 | 15 | ||
16 | # Tutorial | 16 | # Tutorial |
@@ -34,4 +34,13 @@ Just check your package manager for the correct package-name. | @@ -34,4 +34,13 @@ Just check your package manager for the correct package-name. | ||
34 | And you're all set. In build/bin there are two examples, test_mqtt_pu and test_mqtt_sub. Have a broker running, | 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 | 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. | 36 | later the "pub" part. If all went well, you should see two screens in sync running. |
37 | -One is sending, the other is receiveing. | 37 | + |
38 | + ``` | ||
39 | + Open terminal 1 | ||
40 | + $ bin/test_mqtt_sub | ||
41 | + | ||
42 | + Open terminal 2 | ||
43 | + $ bin/test_mqtt_pub | ||
44 | + ``` | ||
45 | +Screen 2 is sending, Screen 1 is receiving. | ||
46 | + |
scripts/setup_submodules
1 | -#!/bin/bash -x | 1 | +#!/bin/bash |
2 | # ================= | 2 | # ================= |
3 | -# = Do not chenge. | 3 | +# = Do not change. |
4 | # ================= | 4 | # ================= |
5 | GIT_URL_SUBS="http://gitlab.osdev.nl/open_source" | 5 | GIT_URL_SUBS="http://gitlab.osdev.nl/open_source" |
6 | FUNC_RESULT="" | 6 | FUNC_RESULT="" |
@@ -66,7 +66,8 @@ function get_submodules() | @@ -66,7 +66,8 @@ function get_submodules() | ||
66 | git submodule update --init --recursive | 66 | git submodule update --init --recursive |
67 | } | 67 | } |
68 | 68 | ||
69 | -function update_submodules() { | 69 | +function update_submodules() |
70 | +{ | ||
70 | git submodule update --recursive | 71 | git submodule update --recursive |
71 | } | 72 | } |
72 | 73 |