> For the complete documentation index, see [llms.txt](https://docs.mclimate.eu/mclimate-lorawan-devices/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mclimate.eu/mclimate-lorawan-devices/devices/mclimate-aqi-sensor-and-notifier-lorawan/aqi-sensor-lorawan-device-communication-protocol/device-leds-control.md).

# Device LED’s control

### **Device LED’s control command  explanation**

This command is used to control the device LED’s. It’s described in Table 16.

| **Byte index** | **Bit index** | **Hex value – Meaning**                               |
| -------------- | ------------- | ----------------------------------------------------- |
| 0              | -             | 05 – The command code.                                |
| 1              | 7:5           | **Red** LED behavior*1*.                              |
|                | 4:0           | **Red** LED duration of the specified behavior*2*.    |
| 2              | 7:5           | **Green** LED behavior*1*.                            |
|                | 4:0           | **Green** LED duration of the specified behavior*2*.  |
| 3              | 7:5           | **Blue** LED behavior*1*.                             |
|                | 4:0           | **Blue** LED duration of the specified behavior *2* . |

*Table 16*

*1* Bits 7:5 values:

* Turn the LED ON.
* Blink fast (10ms on, 200ms off).
* Blink slow (10ms on, 2000ms off).
* Turn the LED OFF.

*2*  The LED behavior duration can be zero. In this case, the specified LED behavior will be available until it’s changed from new radio command or the device button is pressed. If bits\[4:0] are non-zero, the specified LED duration is calculated by the expression: $$Duration, \[s] = bits\[4:0] \* 10$$. The duration matters in case the LED behavior isn’t turned off.

**Example command, \[Hex]:** 05460046 – commands the device LED’s as follows:

* Red LED: Blink fast for 1 minute.
* Green LED: Turn off.
* Blue LED: Blink fast for 1 minute.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.mclimate.eu/mclimate-lorawan-devices/devices/mclimate-aqi-sensor-and-notifier-lorawan/aqi-sensor-lorawan-device-communication-protocol/device-leds-control.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
