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
+23-4Lines changed: 23 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Integration patterns
20
20
Internal systems
21
21
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22
22
23
-
Internally, OS2iot consists of four components shown in this figure.
23
+
Internally, OS2iot consists of five components shown in this figure.
24
24
25
25
|image2|
26
26
@@ -50,11 +50,13 @@ IoT devices
50
50
51
51
Figure 3 - IoT device integration overview
52
52
53
-
All IoT device integrations except LoRaWAN use callbacks to send data to
53
+
All IoT device integrations except LoRaWAN and MQTT use callbacks to send data to
54
54
OS2iot using HTTPS in a request-response manner. Device management for
55
55
Sigfox (i.e. adding and modifying IoT devices) is done by
56
56
sending requests to Sigfox's Cloud backend.
57
57
58
+
MQTT devices uses the MQTT protocol to communicate with the broker.
59
+
58
60
Data from Chirpstack devices are sent to OS2iot through Chirpstack using
59
61
MQTT, where Chirpstack is the publisher and OS2iot is the subscriber.
60
62
Device management is done from OS2iot by sending gRPC requests to
@@ -311,10 +313,20 @@ over the network by a device.
311
313
MQTT
312
314
^^^^
313
315
314
-
There are two kinds of MQTT devices available. MQTT-publisher and MQTT-subscriber.
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.
315
317
316
318
MQTT-publisher
317
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.
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.
324
+
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.
327
+
328
+
The specific topic for the created device will be :code:`device/organizationID/applicationID/deviceID`.
329
+
318
330
319
331
320
332
@@ -324,6 +336,13 @@ MQTT-subscriber
324
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.
325
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.
326
338
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
+
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
+
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
+
344
+
The MQTT-subscriber device has the possibility to use either certificate or username/password to a external broker if needed.
345
+
327
346
328
347
Sigfox
329
348
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -531,7 +550,7 @@ See `the seperate page for KOMBIT adgangsstyring <../kombit-adgangsstyring/kombi
Copy file name to clipboardExpand all lines: source/installation-guide/installation-guide.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -302,7 +302,7 @@ To get the mosquitto broker working, you have to create some certificates and up
302
302
303
303
11. Update the :code:`MQTT_BROKER_HOSTNAME` with the ip/hostname that you used for step 4 and 6, and :code:`CA_KEY_PASSWORD` with the password that you entered in step 3 in the docker-compose.yml file placed in OS2IoT-docker.
304
304
305
-
If you want to use kubernetes then you need some futher steps. First you have to install kubectl.
305
+
If you want to use kubernetes to host mosquitto then you need some futher steps. First you have to install kubectl.
0 commit comments