# Adding Devices to Clarity

This page provides general information about connecting edge devices to Clarity. See the [HMS eWON](/clarity/connect-data-sources/adding-devices-to-clarity/hms-ewon-setup.md) page for connecting their devices.

You can access the Add Device flow by clicking the `+` button next to `DEVICES` in the sidebar:

![](/files/5y0MmO51RZRo8tD4TEVy)

## Device Type and Login

Create a device name and a username and password that your device will use to authenticate itself to Clarity.

![](/files/sKQcdkCa6asppjPUdPgc)

{% hint style="info" %}
Each edge device that connects to Clarity has its own unique username and password. This reduces the risk that all of your devices will be compromised because one device password is leaked.
{% endhint %}

### Protocol Types:

* **JSON**: Use this if you're not sure what to select. The JSON protocol type offers several options for decoding plain text data.
* **SparkPlug**: Use this if your edge device explicitly follows the SparkPlug/B MQTT standard.

After filling out the fields, click **Save**:

![](/files/tgtKr6Wp8Q32AOJWVFq6)

Once the device is created, Clarity will redirect you to the edit view for your device:

![](/files/hYKcLvBm4ivvppHoOZiV)

If your edge device successfully connects to Clarity, you will see the connected status at the top:

![](/files/G6vFnYoPfny4SERC9m4T)


---

# 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://docs.jcore.io/clarity/connect-data-sources/adding-devices-to-clarity.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.
