Skip to content

Commit e0a34da

Browse files
committed
mqtt: README.md updating
1 parent 36d2961 commit e0a34da

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,17 +168,17 @@ There are 3 example C++ application:
168168
```bash
169169
./custom-mqtt-sub --address broker.emqx.io examples/custom-mqtt-sub/public-example0.json
170170
```
171-
- **ref-dev-mqtt-raw-sub** - demonstrates how to work with the raw MQTT FB. The application creates an MQTT device and a raw MQTT FB to receive MQTT messages and create openDAQ signals to send the data as binary packets. The application also creates packet readers for all FB signals and prints the binary packets as strings to standard output. The SignalList property of the raw MQTT FB is filled from the application arguments. Usage:
171+
- **raw-mqtt-sub** - demonstrates how to work with the raw MQTT FB. The application creates an MQTT device and a raw MQTT FB to receive MQTT messages and create openDAQ signals to send the data as binary packets. The application also creates packet readers for all FB signals and prints the binary packets as strings to standard output. The SignalList property of the raw MQTT FB is filled from the application arguments. Usage:
172172
```bash
173-
./ref-dev-mqtt-raw-sub --address broker.emqx.io /agvstate /mirip/UNet3AC2/sensor/data
173+
./raw-mqtt-sub --address broker.emqx.io /agvstate /mirip/UNet3AC2/sensor/data
174174
```
175-
- **ref-dev-mqtt-fb-pub** - demonstrates how to work with the *publisher MQTT FB*. The application creates an *openDAQ ref-device* with four channels, an *MQTT device*, and a *publisher MQTT FB* to publish JSON MQTT messages with the channels’ data. The properties of the *publisher MQTT FB* are set according to the selected mode, which can be specified via the *--mode* option. Posible values are:
175+
- **ref-dev-mqtt-pub** - demonstrates how to work with the *publisher MQTT FB*. The application creates an *openDAQ ref-device* with four channels, an *MQTT device*, and a *publisher MQTT FB* to publish JSON MQTT messages with the channels’ data. The properties of the *publisher MQTT FB* are set according to the selected mode, which can be specified via the *--mode* option. Posible values are:
176176
- 0 - One MQTT message per signal / one message per sample / one topic per signal / one timestamp for each sample;
177177
- 1 - One MQTT message per signal / one message containing several samples / one topic per signal / one timestamp per sample (array of samples);
178178
- 2 - One MQTT message for several signals (from 1 to N) / one message per sample for each signal / one topic for all signals / separate timestamps for each signal;
179179
- 3 - One MQTT message for all signals / one message per sample containing all signals / one topic for all signals / one shared timestamp for all signals.
180180
```bash
181-
./ref-dev-mqtt-fb-pub --address broker.emqx.io --mode 1
181+
./ref-dev-mqtt-pub --address broker.emqx.io --mode 1
182182
```
183183
Published messages can be observed using third-party tools (see the **External MQTT tools** section).
184184
For all applications, by default, the IP address *127.0.0.1* is used for the broker connection. It can be set via the *--address* option, for example:
@@ -189,7 +189,7 @@ For all applications, by default, the IP address *127.0.0.1* is used for the bro
189189
They are located in the **examples/** directory.
190190
> ***Note:*** *Using the applications involves using a third-party broker. It must be started before example applications. See a **External MQTT tools** section for more details*
191191
192-
> ***Note:*** *The **ref-dev-mqtt-fb-pub** application depends on [**RefDeviceModule**](https://github.com/openDAQ/openDAQ/tree/main/examples/modules/ref_device_module).*
192+
> ***Note:*** *The **ref-dev-mqtt-pub** application depends on [**RefDeviceModule**](https://github.com/openDAQ/openDAQ/tree/main/examples/modules/ref_device_module).*
193193
194194

195195
## External MQTT tools
@@ -215,4 +215,4 @@ This command publishes a message and exits. From the subscriber's side you can s
215215
```shell
216216
mosquitto_sub -h 127.0.0.1 -t "openDAQ/publisher" -v
217217
openDAQ/publisher {"Input0":2, "Input1":1.2, "Input3":3.3}
218-
```
218+
```

0 commit comments

Comments
 (0)