Tip
This library is a fork of AsyncTCP_RP2040W and is a drop-in replacement for it. If you were previously using
AsyncTCP_RP2040W, you will need to update yourincludedirectives to#include <RPAsyncTCP.h>.
Table of Contents
What is RPAsyncTCP?
RPAsyncTCP brings the asynchronous networking power of ESPAsyncTCP to RP2040+W and RP2350+W MCUs, serving as the foundation for libraries like ESPAsyncWebServer which allows for advanced routing and better performance compared to syncronous WebServer library.
I. Features
- Handles multiple connections simultaneously
- Callbacks are triggered when requests are ready
- Faster response handling and improved efficiency
- Support for WebSockets, EventSource (Server-Sent Events), and URL Rewriting
- Static file serving with cache and indexing support
- Simple template processing
II. Supported Boards
RPAsyncTCP supports earlephilhower/arduino-pico Arduino Board.
- RP2040 + CYW43439 WiFi (Example: RaspberryPi Pico W)
- RP2350 + CYW43439 WiFi (Example: RaspberryPi Pico 2W)
Installation
I. Using Arduino Library Manager
Search for RPAsyncTCP in the Arduino Library Manager and install the latest version.
II. Using PlatformIO
Search for RPAsyncTCP in the PlatformIO Library Manager and install in your project.
III. Manual Installation
If you would like to install manually, you can follow these steps:
- Download the latest release from GitHub
- For Arduino IDE: Extract and place the folder in
~/Arduino/libraries/ - For PlatformIO, you can place the folder in your
libsfolder of your project.
Examples
Check out the example projects:
Debugging
Debugging is enabled by default on Serial. You can adjust the log level by modifying _RPAsyncTCP_LOGLEVEL_ in the library files:
// 0: DISABLED: no logging
// 1: ERROR: errors
#define _RPAsyncTCP_LOGLEVEL_ 1
License
This library is licensed under the LGPL-3.0 License.
Authors & Maintainers
Thanks to Khoi Hoang for the original fork to add support for RP2040+W. You can support him for his original work here.
- Previous Authors: Hristo Gochkov (2016), Khoi Hoang (2022)
- Current Maintainer: Ayush Sharma (2025)

