mirror of
https://github.com/esphome/esphome.git
synced 2026-02-18 15:35:59 -07:00
17 lines
481 B
C
17 lines
481 B
C
#pragma once
|
|
#include "esphome/core/defines.h"
|
|
|
|
#if defined(USE_ESP32) || defined(USE_LIBRETINY)
|
|
// Use AsyncTCP library for ESP32 (Arduino or ESP-IDF) and LibreTiny
|
|
#include <AsyncTCP.h>
|
|
#elif defined(USE_ESP8266)
|
|
// Use ESPAsyncTCP library for ESP8266 (always Arduino)
|
|
#include <ESPAsyncTCP.h>
|
|
#elif defined(USE_RP2040)
|
|
// Use RPAsyncTCP library for RP2040
|
|
#include <RPAsyncTCP.h>
|
|
#else
|
|
// Use socket-based implementation for other platforms
|
|
#include "async_tcp_socket.h"
|
|
#endif
|