We've seen so far how to send data from an end-device to the Network Server. 1
First, the end-device sends a packet to a gateway. 2
Then, the gateway transfers it on the Internet to a Network Server and an Application Server. 3
That's it. 4
The LoRaWAN protocol stops here. 5
From this point, we have the user data decrypted. In the LoRaWAN protocol, 6
this user data is called the frame payload. 7
If your Network Server provides a more secure environment with end-to-end security, you might have 8
a different architecture, but it doesn't change the overall explanation. 9
Indeed, you Application Server use to decrypt your data with the Application Session Key would be on 10
the same location as your IoT platform. 11
But really, what we're going to explain would be exactly the same. 12
The question is now, what are we going to do with this data? 13
Because we've set up a successful LoRaWAN transmission, and for that, we can be very glad indeed. 14
But now, we need to give some value to this data: 15
We want to save everything in the database. 16
We want to perform calculation, prediction and possibly to apply Artificial Intelligence. 17
We want to present things in tables, graphs or anything that suits our clients. 18
And finally, we want to make these data available through a web service. So the user will be able to 19
access and visualize these data from anywhere. 20
Great. 21
So, the good news is that this chapter is completely independent from the LoRa modulation and the LoRaWAN 22
standards we have studied so far. 23
That means that the following explanation can be easily transposed to any other protocols related to 24
the Internet of Things. 25
Okay, so before starting, let's remind some basic vocabulary: - A frame that comes from the end device, and 26
that goes to the network server. 27
then to the Iot platform is called a uplink frame. 28
And, -A the frame that comes from the IoT platform and that goes to the LoRaWAN server, 29
then towards the end-device is called a downlink frame. 30
Great. 31
We already saw everything concerning the LoRaWAN protocol in the previous chapter. 32
So, now we want to deal with the dialogue between the LoRaWAN server and the IoT platform. 33
And in this chapter, we're going to see in details two protocols which are HTTP and MQTT. 34
For now, we are just focusing only on the data transmission on the IoT platform. 35
But later in this course, we'll build a complete IoT platform ourselves. 36
So we'll be able to save data and visualize them in a nice way. 37
Let's start with the HTTP protocol.