# 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="esp8266-wi-fi/general-prerequisites-esp8266-wi-fi" %}
[general-prerequisites-esp8266-wi-fi](https://docs.antares.id/en/code-and-library-examples/esp8266-wi-fi/general-prerequisites-esp8266-wi-fi)
{% 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="esp8266-wi-fi/esp8266-wi-fi-http-protocol" %}
[esp8266-wi-fi-http-protocol](https://docs.antares.id/en/code-and-library-examples/esp8266-wi-fi/esp8266-wi-fi-http-protocol)
{% endcontent-ref %}

{% content-ref url="esp8266-wi-fi/esp8266-wi-fi-mqtt-protocol" %}
[esp8266-wi-fi-mqtt-protocol](https://docs.antares.id/en/code-and-library-examples/esp8266-wi-fi/esp8266-wi-fi-mqtt-protocol)
{% endcontent-ref %}

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

[http-and-mqtt-protocol](https://docs.antares.id/en/code-and-library-examples/esp32-wi-fi/http-and-mqtt-protocol "mention")
{% endhint %}
