> For the complete documentation index, see [llms.txt](https://docs.ruuvi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ruuvi.com/ruuvi-gateway-firmware/gw-esp32-firmware/gw-esp32-led.md).

# GW ESP32 LED

## LED Indications

The LED indications are listed by priority, the first matching condition is indicated.\
Indication code: the letter "R" means the red LED is on, the letter "G" means the green LED is on, and the letter "-" means the LEDs are off (by default, the step length is 100 ms).

<table data-header-hidden><thead><tr><th>State</th><th>Indication</th></tr></thead><tbody><tr><td>Gateway is rebooting</td><td><p>The step is 25 ms:</p><pre><code>"R-R-R-R-"
</code></pre><p>Red blinks with 50 ms period.</p></td></tr><tr><td>Bluetooth-coprocessor (nRF52) failure</td><td>Solid Red</td></tr><tr><td>Flashing Bluetooth-coprocessor (nRF52)</td><td><pre><code>"R---------"
</code></pre><p>Red LED lights up for 100 ms every second.</p></td></tr><tr><td>Configuration erasing has been completed (after a long press of the button)</td><td><pre><code>"RR--RR--"
</code></pre><p>Red LED flashes with 400 ms period.</p></td></tr><tr><td>Configuration hotspot is active.</td><td><pre><code>"RRRRRRRRRRGGGGGGGGGG"
</code></pre><p>Red and green LEDs light up alternately for 1 second.</p></td></tr><tr><td>Configuration hotspot is active and WPS (Wi-Fi Protected Setup) is active.</td><td><code>"RRRRRRRRGRGGGGGGGGGG"</code></td></tr><tr><td>No internet connection or server returns an error code when trying to send data</td><td><pre><code>"R-R-R-R-R-"
</code></pre><p>Red LED lights up 5 times per second.</p></td></tr><tr><td>No data from Bluetooth sensors</td><td><pre><code>"G-G-G-G-G-"
</code></pre><p>Green LED lights up 5 times per second.</p></td></tr><tr><td>No connection to all servers</td><td><pre><code>"RRRRR-----"
</code></pre><p>Red LED lights up for half a second every second.</p></td></tr><tr><td>No connection to some of the servers</td><td><pre><code>"GGGGGGGGG-"
</code></pre><p>Green LED lights up continuously but goes out every second for a short interval of 100 ms.</p></td></tr><tr><td>The data comes from the Bluetooth sensors and is successfully sent to all configured servers</td><td>Solid Green</td></tr></tbody></table>


---

# 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.ruuvi.com/ruuvi-gateway-firmware/gw-esp32-firmware/gw-esp32-led.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.
