Example
Last updated
Last updated
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.
Drag the Telit deviceWise Context Provider onto the canvas and rename it. Link the output endpoint to the printer and save the Data Stream.
Select the Agent and click Configure. In this case, keep the default Collection and polling interval.
Enter the Connection Settings of the IoT Portal to which you want to connect: Url, App Id...
And the App Token, and Thing Key.
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.
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.
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.
See the Import, Export, and Clone - XMPro article for steps to import a Data Stream.
Data Stream
C0mp|ex123