> For the complete documentation index, see [llms.txt](https://docs.antares.id/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.antares.id/en/code-and-library-examples/esp8266-wi-fi.md).

# ESP8266 (Wi-Fi)

This documentation will explain how the ESP8266 can connect with the Antares platform. The ESP8266 can read data from several sensors and can send data to the Antares platform. This documentation uses **LOLIN(WEMOS) D1 R2** as the board. Before starting the documentation, make sure you fulfil the prerequisites on the following page.

{% content-ref url="/pages/FfvYH4773vShlmvxo6Gj" %}
[General Prerequisites ESP8266 Wi-Fi](/en/code-and-library-examples/esp8266-wi-fi/general-prerequisites-esp8266-wi-fi.md)
{% endcontent-ref %}

After fulfilling the **General Prerequisites** you can select the protocol you want to use. There are two protocols namely **HTTP** and **MQTT** that can be used on **ESP8266** Wi-Fi. You can follow the documentation of each protocol on the following page.

{% content-ref url="/pages/epxwuElXbcfJsG4UKLid" %}
[ESP8266 (Wi-Fi) HTTP Protocol](/en/code-and-library-examples/esp8266-wi-fi/esp8266-wi-fi-http-protocol.md)
{% endcontent-ref %}

{% content-ref url="/pages/2aWgRV4bSY2zMzfy5U4L" %}
[ESP8266 (Wi-Fi) MQTT Protocol](/en/code-and-library-examples/esp8266-wi-fi/esp8266-wi-fi-mqtt-protocol.md)
{% endcontent-ref %}

{% hint style="info" %}
If you still need further explanation about **MQTT** and **HTTP** protocols, please visit the following page.

[HTTP & MQTT Protocol](/en/code-and-library-examples/esp32-wi-fi/http-and-mqtt-protocol.md)
{% endhint %}


---

# 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:

```
GET https://docs.antares.id/en/code-and-library-examples/esp8266-wi-fi.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.
