Setting up the Thing, device association, cloud variables, and code
After setting up the hardware, it’s time to set up the Thing in the Arduino IoT Cloud. For this project, we need four cloud variables to fetch different properties from the device. The device association settings will be different due to the LoRa series board. Also, network configuration will happen automatically when we upload the code/sketch to the MKR WAN 1300. Figure 6.8 shows a complete overview of the Thing:
Figure 6.8 – Remote asset tracking using the LoRaWAN Thing setup
Set up a new Thing with the name A remote asset tracking using LoRaWAN, and then follow the next steps, which will take you to the next subsections to create variables, an associate device network configuration, and finally, code. We have marked the preceding figure with red boxes and numbers according to the following steps.
Firstly, we need to set up four cloud variables – Location
, AltitudeFeet...