Fetch data from Azure IoT Hub
Processor in Data Integration Platform is used to fetch data from Microsoft Azure IoT Hub. The overview of the template is given below which is used to get the data from Azure IoT Hub and store it in File and it can be visualized in the Syncfusion Dashboard.
The following are the list of processors used in this sample,
Get endpoints, partitions, shared access primary keys, and hub name details by using the following steps before configuring and running the sample.
Get endpoints from Azure Portal
Step 2: Choose your respected Azure IOT Hub in dashboard page.
Step 3: Type “endpoints” in search box and select the Events from built-in endpoints. It shows the value of partitions, Hub-compatible names and endpoints. For IOT Hub Endpoint get only the Namespace from the Event Hub-compatible endpoint.
For example, if your Event Hub-compatible endpoint is sb://iothub-ns-myiothub-1234.servicebus.windows.net/, the Hostname would be iothub-ns-myiothub-1234.servicebus.windows.net. The Namespace would be iothub-ns-myiothub-1234.
Get Shared Access Primary Key
Step 1: Type “shared access policies” in search box, choose Shared access policies and select the iothubowner from Policy. Copy the primary key from Shared access keys.
Steps to configure and run the Sample
Step 1 - Configure “Get Data from Sales Azure IOT Hub” processor
Step 2 - Configure “Update File Name” processor
Step 3 - Configure “Store Data Retrieved into File” processor
Step 4 - Add Publish Data into Dashboard processor
Step 5 – Visualization in Syncfusion Dashboard
Push data into Azure IoT Hub
Get value of Device Id and Device Primary Key
Enter “IoT Devices” in search box, select your device from the DEVICE ID.
You can get Device Id and Primary key from Device Details.
Configure PutAzureIOTHub processor
Drag and drop the processor into canvas. Double click the processor and set IoT Hub name, device id, and device primary key. Once it is configured, you can push flow file data into Azure IoT using processor.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|
|8226||12/14/2017||09/28/2018||Big Data Platform||General|