ESPHome 2026.1.4
Loading...
Searching...
No Matches
async_tcp.h
Go to the documentation of this file.
1#pragma once
3
4#if defined(USE_ESP32) || defined(USE_LIBRETINY)
5// Use AsyncTCP library for ESP32 (Arduino or ESP-IDF) and LibreTiny
6#include <AsyncTCP.h>
7#elif defined(USE_ESP8266)
8// Use ESPAsyncTCP library for ESP8266 (always Arduino)
9#include <ESPAsyncTCP.h>
10#elif defined(USE_RP2040)
11// Use AsyncTCP_RP2040W library for RP2040
12#include <AsyncTCP_RP2040W.h>
13#else
14// Use socket-based implementation for other platforms
15#include "async_tcp_socket.h"
16#endif