This example demonstrates how to use the JSON Context Provider to read context data from a JSON file and Join it with high-frequency sensor data(simulated).
Drag the Agent onto the canvas and rename the Agent. Link the output endpoint to the join.
Save the Data Stream.
Select the Agent and click Configure. In this case, keep the default Collection.
- 1.Specify a path to a JSON file that contains context data.
- 2.Fill in the payload definition as per the contents of the file.
Apply the changes.
Save the Data Stream and publish it.
Let's look at the Live Data View. Observe that the context was successfully read and joined with sensor data. A complete example and the files used are provided below.
Json File Reader Example.xuc