Hello LoRaWAN® and Thingpark

Step 7 - Create a Backend Application

In this step, you will:

– Create a backend application for testing purposes.

 

In order to display the information received from TPC, visit the Webhook website to create a web page that will show the data sent from your device using TPC’s service.

As a result of this step, your account is created on TPC, and the registration of your device is proceeded with.

* This is the unique URL, which was just created, and the only information you need to proceed.

Step 8 - Create TPC Account

In this step, you will:

– Create an account on the ThingPark Community portal(*).

 

In order to view the LoRaWAN® packets that you are going to send, you need a TPC account(*).

 

As a result of this step, your account is created on TPC to be able to proceed with the registration of your device.

* If you already have a TPC account, you can skip this step.

Step 9 - Register Backend Application

In this step, you will:

– Create a connection on the ThingPark Community portal(*).

 

On the TPC portal, a connection is a link to an Application Server for backend processing. Creating a Connection instance amounts to define the target address of your application and the protocol.

Here we will use HTTP, but ThingPark supports many other protocols including proprietary protocols used by all leading IoT platforms. ThingPark can also decode the LoRaWAN® payload and adapt the content to a target platform (ontology mapping), but we will not use this more advanced service here.

As a result of this step, your account is created on TPC, allowing your device to be registered.

* If you already have a backend application definition (i.e a connection) on TPC, you can skip this step.

Step 10 - Register Device to TPC

In this activity, you will:

– Access the TPC admin console
– Register your device using the DevEUI that you identified in Step 6.

 

In order to be able to receive and view the LoRaWAN® packets that you send with your device, it should be registered with TPC.

In this step, the device definition for your Arduino MKR WAN 1310 device is created. Now, TPC is waiting for your LoRaWAN® packets to be processed and forwarded to the connection (i.e., Webhook site) you defined.

* Note that AppKey should be kept in a safe environment and should not be shared with anybody. As you can guess, the AppKey shown above is not the real AppKey of the device definition.

** Notice that this DevEUI is not real and is shown as an example.

Step 11 - Send and Receive LoRaWAN® Packets

In this step, you will:

– Use the LoraSendAndReceive sketch.

– Edit Arduino_secrets.h to enter the device credentials that you had decided on in Step 10.

– Run the sketch to observe that your LoRaWAN® packet is sent to TPC.

Now, your environment is ready to send your first LoRaWAN® packet is sent to TPC. For this purpose, you are going to use the example(*) sketch supplied by the MKRWAN library.

 

In order to be able to receive and view the LoRaWAN® packets that you send with your device, it should be registered with TPC.

As a result of this step, it is confirmed that all the steps of this activity have been successfully performed. Congratulations !

https://docs.arduino.cc/tutorials/mkr-wan-1310/mkr-wan-library-examples#mkr-wan-lora-send-and-receive