# ESP8266 (Wi-Fi)

<figure><img src="/files/TuxASFcxRGsnVqGvQwMv" alt=""><figcaption><p>Board Wemos D1 R2</p></figcaption></figure>

Dokumentasi ini akan menjelaskan bagaimana ESP8266 dapat terhubung dengan platform Antares. ESP8266 dapat membaca data dari beberapa sensor serta dapat mengirim data ke platform Antares. Pada dokumentasi ini menggunakan **LOLIN(WEMOS) D1 R2** sebagai boardnya. Sebelum memulai dokumentasi, pastikan sudah memenuhi prasyarat pada laman berikut.

{% content-ref url="/pages/FfvYH4773vShlmvxo6Gj" %}
[Prasyarat Umum ESP8266 Wi-Fi](/contoh-kode-dan-library/esp8266-wi-fi/prasyarat-umum-esp8266-wi-fi.md)
{% endcontent-ref %}

Setelah memenuhi **Prasyarat Umum** Anda dapat memilih protokol yang ingin digunakan. Terdapat dua protokol yaitu **HTTP dan MQTT** yang dapat digunakan pada **ESP8266 Wi-Fi**. Dokumentasi dari masing-masing protokol dapat anda ikuti melalui laman berikut.

{% content-ref url="/pages/epxwuElXbcfJsG4UKLid" %}
[ESP8266 (Wi-Fi) Protokol HTTP](/contoh-kode-dan-library/esp8266-wi-fi/esp8266-wi-fi-protokol-http.md)
{% endcontent-ref %}

{% content-ref url="/pages/2aWgRV4bSY2zMzfy5U4L" %}
[ESP8266 (Wi-Fi) Protokol MQTT](/contoh-kode-dan-library/esp8266-wi-fi/esp8266-wi-fi-protokol-mqtt.md)
{% endcontent-ref %}

{% hint style="info" %}
Jika anda masih perlu penjelasan lebih lanjut mengenai protokol **MQTT dan HTTP** silahkan mengunjungi laman berikut.

[Protokol HTTP & MQTT](/contoh-kode-dan-library/esp32-wi-fi/protokol-http-and-mqtt.md)
{% endhint %}


---

# Agent Instructions: 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/contoh-kode-dan-library/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.
