# Widget Properties

## Set Widget Property

Publish topic **ds/`DATASTREAM`/prop/`PROPERTY`**, payload: value in plain text (i.e. `123`, `hello`)

* `DATASTREAM` - the datastream name
* `PROPERTY` - the [property name](https://github.com/blynkkk/docs/blob/main/blynk.edgent-firmware-api/widget-properties.md)

{% hint style="info" %}
For multivalue (array-like) values, the individual items in the payload are separated using a `0x00` byte, i.e: `First\u0000Second\u0000Third`. The separator is a `NUL` character, that is also represented as `\u0000` in Unicode.
{% endhint %}

```bash
mosquitto_pub -h blynk.cloud -p 8883 -u device -P '{DEVICE_TOKEN}' -t 'ds/Temperature/prop/color' -m 'red'
```

## Erase Widget Property

Publish topic **ds/`DATASTREAM`/prop/`PROPERTY`/erase**, payload: empty

* `DATASTREAM` - the datastream name
* `PROPERTY` - the property name

```bash
mosquitto_pub -h blynk.cloud -p 8883 -u device -P '{DEVICE_TOKEN}' -t 'ds/Temperature/prop/color/erase' -n
```


---

# 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.blynk.io/en/blynk.cloud-mqtt-api/device-mqtt-api/widget-properties.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.
