# Data Streams

Data streams are a way to structure data that regularly flows in and out of a device. These data streams are connected to the various widgets on the app or web dashboard that allow the user to receive data, view data, or send commands to the device. For this project we will need four different data streams. One for each relay that is to be controlled.&#x20;

To do this click on the data streams tab.&#x20;

Then click on the +New Datastream button.&#x20;

<figure><img src="https://1086356448-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhU6mcDIHj02ozsHZtnUU%2Fuploads%2FsHcypSMme2Y4RjTWYTy4%2FDatastream%20settings.PNG?alt=media&#x26;token=221eeb56-aa19-4a34-8fa5-458b1c021b39" alt=""><figcaption></figcaption></figure>

Setup up four data streams as shown in the image above with the following names, Relay 1, Relay 2, Relay 3, and Relay 4.&#x20;

When you are done you should have four data streams as shown in the image below.&#x20;

<figure><img src="https://1086356448-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhU6mcDIHj02ozsHZtnUU%2Fuploads%2FyZbbMQ7YjO6STyVlF3zC%2FDatastreams_cropped.png?alt=media&#x26;token=130799bd-909b-40f9-871a-782be7d834e2" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://brlabelectronics.gitbook.io/tutorials-1/creating-the-web-dashboard/data-streams.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
