You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hereafter, we assume that the default configuration file *mqttloader.conf* is used.
56
57
If you just want to quickly confirm how MQTTLoader works, using a public broker is an easy way.
57
58
For example, a public MQTT broker provided by HiveMQ is used by the following configuration.
58
59
(Please do not make a heavy load on public brokers.)
@@ -112,7 +113,7 @@ You can run MQTTLoader on multiple machines.
112
113
Running both publishers and subscribers on a single machine may cause mutual influence, e.g., the subscribers' receiving load lowers the publishers' throughput.
113
114
By running publishers and subscribers separately on different machines, you can avoid such mutual influence.
114
115
115
-
For example, on a host A, you can run MQTTLoader with the following configuration:
116
+
For example, on a host A, you can run MQTTLoader with the following configuration in *mqttloader.conf*:
116
117
117
118
```
118
119
broker = <IP>
@@ -123,7 +124,7 @@ subscriber_timeout = 20
123
124
ntp = <NTP-SERVER>
124
125
```
125
126
126
-
Subsequently, you can run another MQTTLoader on a host B with the following configuration:
127
+
Subsequently, you can run another MQTTLoader on a host B with the following configuration in *mqttloader.conf*:
127
128
128
129
```
129
130
broker = <IP>
@@ -135,7 +136,7 @@ ntp = <NTP-SERVER>
135
136
```
136
137
137
138
By these, from the publisher on host B to the subscriber on the host A via the broker, MQTT messages are delivered.
138
-
When running on multiple machines, the following parameters in the configuration file should be considered.
139
+
When running on multiple machines, the following parameters in *mqttloader.conf* should be considered.
139
140
140
141
- Specify the same NTP server on host A and host B with the parameter `ntp`.
141
142
- Specify enough long timeout period with the parameter `subscriber_timeout`.
@@ -146,7 +147,7 @@ The former is to improve the accuracy of latency calculation, whereas the latter
146
147
MQTTLoader supports TLS authentication.
147
148
148
149
To connect with a broker by TLS, truststore file in JKS (Java Key Store) format that contains CA certificate is needed.
149
-
By specifying the JKS file with the parameter `tls_truststore` in the configuration file, TLS authentication is enabled.
150
+
By specifying the JKS file with the parameter `tls_truststore` in *mqttloader.conf*, TLS authentication is enabled.
150
151
151
152
Below is an example procedure when using Mosquitto's public broker.
152
153
@@ -155,7 +156,7 @@ Below is an example procedure when using Mosquitto's public broker.
0 commit comments