- Notifications
You must be signed in to change notification settings - Fork4
Async TCP Library for ESP8266 using WiFi or LwIP Ethernet. This library is the base for more advanced Async libraries, such as ESPAsyncWebServer, AsyncHTTPRequest, etc.
License
khoih-prog/ESPAsyncTCP
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
- Important Notes
- Why do we need this ESPAsyncTCP library
- Changelog
- Async TCP Library for ESP8266 Arduino
- Documentation
- Examples
- Libraries and projects that use ESPAsyncTCP
- Contributions and Thanks
- Contributing
- License
- Copyright
The new ESP8266 cores v3.0.2+ introduces many new breaking features, such as replacingaxtls withbearssl, as well as good ones such as LwIP EthernetW5500lwIP,W5100lwIP andENC28J60lwIP libraries.
Because the originalESPAsyncTCP library is not well maintained to cope with dynamic environment of new cores, features, etc., this forkedESPAsyncTCP library is created as an effort to trythe best to keep up with the fast changes and avoid compile errors in future cores or dependent libraries.
Hopefully thebearssl feature of new ESP8266 cores will be added to this library in the near future to support SSL.
Why do we need thisESPAsyncTCP library
This library is based on, modified from:
to apply the better and fasterasynchronous feature of thepowerfulESPAsyncTCP Library with SSL, and will be the base for other more advanced Async libraries for ESP8266, such as ESPAsyncWebServer, AsyncHTTPRequest, AsyncHTTPSRequest, etc.
- Using asynchronous network means that you can handlemore than one connection at the same time
- You are called once the request is ready and parsed
- When you send the response, you areimmediately ready to handle other connections while the server is taking care of sending the response in the background
- Speed is OMG
- Easy to use API, HTTP Basic and Digest MD5 Authentication (default), ChunkedResponse
- Easily extensible to handleany type of content
- Supports Continue 100
- Async WebSocket plugin offering different locations without extra servers or ports
- Async EventSource (Server-Sent Events) plugin to send events to the browser
- URL Rewrite plugin for conditional and permanent url rewrites
- ServeStatic plugin that supports cache, Last-Modified, default index and more
- Simple template processing engine to handle templates
ESP8266boards
For ESP32, checkAsyncTCP orAsyncTCP_SSL
This is a fully asynchronous TCP library, aimed at enabling trouble-free, multi-connection network environment for Espressif's ESP8266 MCUs, using WiFi or LwIP Ethernet (W5500lwIP, W5100lwIP and ENC28J60lwIP libraries)
This library is the base forESPAsyncWebServer
The base classes on which everything else is built. They expose all possible scenarios, but are really raw and require more skills to use.
This class can be used to send data like any otherPrint interface (Serial for example).
The object then can be used outside of the Async callbacks (the loop) and receive asynchronously data usingonData. The object can be checked if the underlyingAsyncClient is connected, or hook to theonDisconnect callback.
This class is really similar to theAsyncPrinter, but it differs in the fact that it can buffer some of the incoming data.
It is exactly what it sounds like. This is a standard, blocking TCP Client, similar to the one included inESP8266WiFi
- AsyncMQTT_Generic
- ESPAsync_WiFiManager
- AsyncHTTPRequest_Generic
- AsyncHTTPSRequest_Generic
- ESPAsync_WiFiManager_Lite
- AsyncWebServer_Ethernet
and many more to come.
Submit issues to:ESPAsyncTCP issues
- Search for bug and improvement.
- Add
bearsslAsync features for new cores - Remove
hard-codeif possible
- Try to convert to use with new ESP8266 cores v3.0.2+ without
axtlssupport - Add Table of Contents
- Modify examples\
- Add astyle using
allmanstyle. Restyle the library
Many thanks for everyone for bug reporting, new feature suggesting, testing and contributing to the development of this library.
- Based on and modified fromHristo Gochkov's ESPAsyncTCP. Many thanks toHristo Gochkov for greatESPAsyncTCP Library
![]() ⭐️⭐️ Hristo Gochkov |
If you want to contribute to this project:
- Report bugs and errors
- Ask for enhancements
- Create issues and pull requests
- Tell other people about this library
- The library is licensed underLGPLv3
- Copyright (c) 2016- Hristo Gochkov
- Copyright (c) 2022- Khoi Hoang
About
Async TCP Library for ESP8266 using WiFi or LwIP Ethernet. This library is the base for more advanced Async libraries, such as ESPAsyncWebServer, AsyncHTTPRequest, etc.
Topics
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Languages
- C++77.7%
- C20.6%
- Shell1.7%
