The Things Network (The Things Stack Community Edition)

Integrations in The Things Network are configured at application level, so all the devices in an application share the same integrations.

In my IoT open Tech every user has a special device called “Control”. This device can queue the messages received from The Things Network to the correct final device using the Device EUI as filtering criteria, so the application in The Things Network should be integrated to send telemetries to the user’s Control device, that in turn will deliver them to the device with the matching Device EUI.

Prerequisites

  • A The Things Stack Community Edition account (account can be registered at https://console.cloud.thethings.network/).
  • A valid email address to register an account in my IoT open Tech service.

General procedure

  1. Register a new user account in my IoT open Tech service to get the access token of the Control device. This access token will be used later (step 4) to configure the integration in The Things Stack Community Edition.
  2. If the device type has not self-provisioning capability (see supported device/asset types table), create a new device in my IoT open Tech and provide its Device EUI. Otherwise, this step is optional, and the device will be automatically created at the reception of its first telemetry from The Things Stack Community Edition, and besides the user will receive an email with the codes to integrate it with my IoT legram.
  3. If it hasn’t been done yet, create the application and the device in The Things Stack Community Edition console.
  4. Configure the my IoT open Tech integration using the access token got in step 1.
  5. Verify the telemetries are properly received in the my IoT open Tech Panel de control dashboard.

Example for integrating a Dragino LHT65 device

  1. Use your web browser to open the address https://iotopentech.io/register.php, write your email address, and press the Send button. After a few seconds, the web service will show the access token of your Control device (please, remember to keep it safe), and you will also receive an email message with the link to activate your my IoT open Tech account.

    imagen

  2. Click on the Activate your account link in the email message from the previous step to activate your account and choose a password.

    imagen

    imagen

  3. Click on Dashboards, and then on Configuración.

    imagen

    imagen

  4. In the centered panel ACTIVOS Y DISPOSITIVOS, click on the ROOT asset to open its configuration dialog box. In the CREAR tab, write a name for your new device, select Device for this element (not an Asset), choose the LHT65 device type, and click on the CREAR button. The new device will appear nested below the ROOT asset.

    imagen

  5. Click on your new device to open its configuration dialog box. In the tab CONFIGURAR, click on the drop down Device EUI section, write the Device EUI of your device, and press the CONFIGURAR button.

    imagen

  6. If you haven’t done it yet, create an application and device in The Things Stack Community Edition console. You can find more information here:

  7. Select Integrations in the left panel of your The Things Stack Community Edition application console, then Webhooks, and finally press the Add webhook button in the upper right. Write the access token you got in step 1, and click on Create my iot open tech webhook.

    imagen

  8. You can verify that the integration is working properly simulating a telemetry message. In The Things Stack Community Edition console, open the Messaging tab of your new device, write CBF0090C018201089E7FFF (this is the raw payload of an LHT65 message) in the Payload field of the Simulate uplink section, and press the button Simulate uplink. Now, open your Panel de control dashboard in my IoT open Tech and click on your device nested under the ROOT asset; the dashboard should show the telemetry as in the last image.

    imagen

    imagen