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
Copy file name to clipboardExpand all lines: source/external-interface-design/external-interface-design.rst
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -313,35 +313,35 @@ over the network by a device.
313
313
MQTT
314
314
^^^^
315
315
316
-
There are two kinds of MQTT devices available. MQTT-publisher and MQTT-subscriber. These two devices works in different matters which will be described below.
316
+
There are two kinds of MQTT devices available. MQTT external broker and MQTT internal broker. These two devices works in different matters which will be described below.
317
317
318
-
MQTT-publisher
318
+
MQTT external broker
319
319
~~~~~~~~~~~~~~
320
-
The MQTT-publisher device will make it possible for a physical device to communicate with the internal OS2IoT mosquitto broker.
321
-
The MQTT-publisher is created in the OS2IoT backend and is created with the credentials that the device needs for communicating with the internal broker.
320
+
The MQTT external broker device will make it possible for a physical device to communicate with the internal OS2IoT mosquitto broker.
321
+
The MQTT external broker is created in the OS2IoT backend and is created with the credentials that the device needs for communicating with the internal broker.
322
322
323
-
The MQTT-publisher device can either be created with username/password or credentials. If the publisher is created with username/password it will use port 8885, and if created with certificate it will use port 8884.
323
+
The MQTT external broker device can either be created with username/password or credentials. If the publisher is created with username/password it will use port 8885, and if created with certificate it will use port 8884.
324
324
325
325
When a physical MQTT device will publish some data, then OS2IoT will check for the specific topic that the device is publishing to in the database, and if the topic is set in the database, it will process the data.
326
-
If a MQTT-publisher device with the specific topic isn't created then the broker won't be able to find it in the database and therefore it will reject the data.
326
+
If a MQTT external broker device with the specific topic isn't created then the broker won't be able to find it in the database and therefore it will reject the data.
327
327
328
328
The specific topic for the created device will be :code:`device/organizationID/applicationID/deviceID`.
329
329
330
330
331
331
332
332
333
-
MQTT-subscriber
333
+
MQTT internal broker
334
334
~~~~~~~~~~~~~~~
335
335
336
-
The MQTT-subscriber uses the MQTT protocol to subscribe to a topic on an external MQTT broker. A client is created in the OS2IoT backend.
336
+
The MQTT internal broker uses the MQTT protocol to subscribe to a topic on an external MQTT broker. A client is created in the OS2IoT backend.
337
337
This client will connect to the external MQTT broker using the provided URL, port and authentication, and then subscribe to data on the provided topic.
338
338
339
339
OS2IoT doesn't have any knowlegde of the external broker so it's totally up to the user to provide the different inputs.
340
340
If the input isn't valid and a connection can't be made to the external broker, a flag will be set in the database which tells OS2IoT that the connection can't be made and then OS2IoT will stop trying to connect to the external broker.
341
341
342
342
If the inputs from the user IS valid, then a connection will be made and the device will listen to any updates from the broker.
343
343
344
-
The MQTT-subscriber device has the possibility to use either certificate or username/password to a external broker if needed.
344
+
The MQTT internal broker device has the possibility to use either certificate or username/password to a external broker if needed.
Copy file name to clipboardExpand all lines: source/software-architecture/software-architecture.rst
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -332,14 +332,14 @@ It is required that the device itself can be configured to send to a configured
332
332
MQTT
333
333
^^^^
334
334
335
-
The MQTT Broker devices is communicating with the internal MQTT broker with encrypted TLS. The broker is futhermore implemented with the go-auth plugin (https://github.com/iegomez/mosquitto-go-auth).
335
+
The MQTT internal Broker devices is communicating with the internal MQTT broker with encrypted TLS. The broker is futhermore implemented with the go-auth plugin (https://github.com/iegomez/mosquitto-go-auth).
336
336
337
337
The go-auth plugin is used so that devices trying to communicating with the internal MQTT broker has to be verified in the database by sending their username and password or by sending a device certificate that only can be verified if it's signed by the CA certificate.
338
338
If the internal MQTT broker can't verify the device trying to connect then the internal MQTT broker will close the connection for the device.
339
339
340
340
The internal MQTT broker is also checking if the device trying to publish or subscribe to the broker has access to the specific topic that the device is trying to publish or subscribe to.
341
341
342
-
The MQTT Client devices can support both username/password and cert authentication if a broker requires it.
342
+
The MQTT external broker devices can support both username/password and cert authentication if a broker requires it.
0 commit comments