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 your include
directives to #include <RPAsyncTCP.h>
.
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.
- 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
RPAsyncTCP supports earlephilhower/arduino-pico Arduino Board.
- RP2040 + CYW43439 WiFi (Example: RaspberryPi Pico W)
- RP2350 + CYW43439 WiFi (Example: RaspberryPi Pico 2W)
Search for RPAsyncTCP in the Arduino Library Manager and install the latest version.
Search for RPAsyncTCP in the PlatformIO Library Manager and install in your project.
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
libs
folder of your project.
Check out the example projects:
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
This library is licensed under the LGPL-3.0 License.
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)