Skip to content

Commit da3f296

Browse files
Merge pull request #41 from OS2iot/feature/docs-for-mqtt-support
Correct renaming in docs
2 parents 902a051 + f36a3f7 commit da3f296

File tree

4 files changed

+19
-19
lines changed

4 files changed

+19
-19
lines changed

source/external-interface-design/external-interface-design.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -313,35 +313,35 @@ over the network by a device.
313313
MQTT
314314
^^^^
315315

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.
317317

318-
MQTT-publisher
318+
MQTT external broker
319319
~~~~~~~~~~~~~~
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.
322322

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.
324324

325325
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.
327327

328328
The specific topic for the created device will be :code:`device/organizationID/applicationID/deviceID`.
329329

330330

331331

332332

333-
MQTT-subscriber
333+
MQTT internal broker
334334
~~~~~~~~~~~~~~~
335335

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.
337337
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.
338338

339339
OS2IoT doesn't have any knowlegde of the external broker so it's totally up to the user to provide the different inputs.
340340
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.
341341

342342
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.
343343

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.
345345

346346

347347
Sigfox

source/iot-data-handling/iot-data-handling.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,24 +62,24 @@ If the API-key is unknown, then the resposne will be 403 Bad Request with the me
6262
MQTT
6363
^^^^
6464

65-
OS2IoT supports two kinds of MQTT devices. An MQTT-publisher and an MQTT-subscriber.
65+
OS2IoT supports two kinds of MQTT devices. An MQTT external broker and an MQTT internal broker.
6666

6767
OS2IoT supports two kinds of authorization for MQTT devices: Username/password and certificate.
6868

69-
MQTT-publisher
69+
MQTT external broker
7070
~~~~~~~~~~~~~~
7171

72-
When an MQTT-publisher is created, the credentials for connecting to the internal MQTT-broker are generated.
72+
When an MQTT external broker is created, the credentials for connecting to the internal MQTT-broker are generated.
7373
These consists of a URL, a port and a topic for the device to send data to.
7474
If the authorization type is certificate then the required certificates will be generated. If username/password is used these are manually entered.
7575

76-
When a known MQTT-publisher sends data to the topic assigned to it, the message will be further processed.
76+
When a known MQTT external broker sends data to the topic assigned to it, the message will be further processed.
7777
If a device attempts to send to a different topic the message will be discarded.
7878

79-
MQTT-subscriber
79+
MQTT internal broker
8080
~~~~~~~~~~~~~~~
8181

82-
When an MQTT-subscriber is created a connection to the external broker is made using the entered credentials.
82+
When an MQTT internal broker is created a connection to the external broker is made using the entered credentials.
8383
When a message is received by the external broker on the topic configured, OS2IoT will also receive the message and further process it.
8484

8585

source/logical-data-model/logical-datamodel.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ IoTDeviceType
103103
1. GenericHttp
104104
2. LoRaWAN
105105
3. SigFox
106-
4. MQTTBroker
107-
5. MQTTSubscriber
106+
4. MQTTInternalBroker
107+
5. MQTTExternalBroker
108108

109109
ErrorCodes
110110
~~~~~~~~~~~~~~~~~

source/software-architecture/software-architecture.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,14 +332,14 @@ It is required that the device itself can be configured to send to a configured
332332
MQTT
333333
^^^^
334334

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).
336336

337337
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.
338338
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.
339339

340340
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.
341341

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.
343343

344344
Sigfox
345345
^^^^^^

0 commit comments

Comments
 (0)