Example
This example Data Stream demonstrates how to use this Context Provider to return the version and machine fields of the two most recently created Things with a name starting with "machine".
Refer to configuration to understand all configuration options of this Agent.
Step 1: Add the Agent
Drag the Telit deviceWise Context Provider onto the canvas and rename it. Link the output endpoint to the printer and save the Data Stream.
Step 2: Configure General
Select the Agent and click Configure. In this case, keep the default Collection and polling interval.
Step 3: Configure Connection Settings
Enter the Connection Settings of the IoT Portal to which you want to connect: Url, App Id...
And the App Token, and Thing Key.
Step 4: Configure Thing Definition
Select the Thing Definition, Fields to Return, and Attributes to Return. In this case, select the machine Thing Definition, leave the Fields to Return blank, and select the version for Attributes to Return.
Step 5: Configure Filtering and Sorting
Input the Search Query and Number of Rows to return. In this case, select name:machine* and 2.
Set the Sort By and Direction. In this case, select createdOn and descending.
Step 6: View Results
Apply the changes, save the Data Stream and publish it.
Let's look at the Live Data View. Observe the fields and version attribute of the top two Things based on the filtering and sorting are returned, every 10 seconds.
Files
See the Import, Export, and Clone - XMPro article for steps to import a Data Stream.
Last updated