Before connecting the LoRaWAN server to our IoT platform. 1
We need to understand who is going to be the subscriber, the publisher, and the broker. 2
Actually, it's not that straightforward because there are two possibilities. 3
So we'll see both of them on this figure. 4
I represent at the top the LoRaWAN server and at the bottom the IoTplatform. 5
Most of the time the LoRaWAN server exposes by default a MQTT broker. 6
So we don't need to configure anything and the broker is already available and enabled. 7
If you want to use it, 8
so if a publisher on the subscriber wants to connect to this broker, then we just need to check the 9
credentials and the topic hierarchy of this broker. 10
Everything is in the documentation of each LoRaWAN server and that is definitely the easiest way to 11
proceed. 12
So in that case, who is the subscriber and who is the publisher? For both its the IoT platform. 13
The subscriber on the IoT platform is going to check its favorite topic on the broker, usually the uplink 14
stream, and the publisher is going to send messages to the broker, usually messages for the device, 15
so the downlink stream. 16
The nice thing with this architecture is that we don't need to set up an MQTT broker, but only two 17
clients, one subscriber and one publisher. 18
We'll make a demonstration for this architecture. 19
But before I would like to present you a second architecture that you might find.