This guide will walk you though integrating a NimbeLink device that uses N-Link to Azure IoT Hub using an available solution template. This guide expects that you will use the Google Cloud Platform (GCP) PubSub connector offered by NimbeLink.
If you already have an IoT Hub, you can skip this step.
For a detailed walkthrough from Microsoft, check out the following link:
https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-create-through-portal
Before continuing, you will need to ensure you have the proper information from NimbeLink to connect to their GCP PubSub topics assigned to your organization.
nl-at-*****-prod
org-******
{
"type": "service_account",
"project_id": "nl-at-*****-prod",
"private_key_id": "******",
"private_key": "-----BEGIN PRIVATE KEY-----\n********\n-----END PRIVATE KEY-----\n",
"client_email": "org-******@nl-at-*******-prod.iam.gserviceaccount.com",
"client_id": "******",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/org-*****%40nl-at-*****-prod.iam.gserviceaccount.com"
}
You will need to import two solution templates, one for the N-Link connection, and one for the IoT Hub connection. Follow the steps below to import the solution templates:
Click Solution Templates at the bottom of any page.
Find the NimbeLink N-Link Connector template and click Import.
Follow the instructions below to import the template:
Project ID
from #3 above.Subscription
from #3 above.Credentials
from #3 above.Find the NimbeLink N-Link Connector template and click Import.
Follow the instructions below to import the template:
You should receive an import result like this:
Now that everything has been imported, you can start receiving data. Cause your device to report to the N-Link server.
Verify that the client is connected by navigating to Services -> List and checking the last activity.
With the device connected, you should now see it connected in the IoT Hub, and data being updated in the device twin.