> 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 %}
