Skip to content

Commit c90fc98

Browse files
committed
update readme
1 parent ef448a8 commit c90fc98

File tree

2 files changed

+60
-61
lines changed

2 files changed

+60
-61
lines changed

README.ESP32Async.md

Lines changed: 0 additions & 60 deletions
This file was deleted.

README.md

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
![https://avatars.githubusercontent.com/u/195753706?s=96&v=4](https://avatars.githubusercontent.com/u/195753706?s=96&v=4)
22

3-
# Project moved to [ESP32Async](https://github.com/organizations/ESP32Async) organization at [https://github.com/ESP32Async/AsyncTCP](https://github.com/ESP32Async/AsyncTCP)
3+
# AsyncTCP
4+
5+
[![License: LGPL 3.0](https://img.shields.io/badge/License-LGPL%203.0-yellow.svg)](https://opensource.org/license/lgpl-3-0/)
6+
[![Continuous Integration](https://github.com/ESP32Async/AsyncTCP/actions/workflows/ci.yml/badge.svg)](https://github.com/ESP32Async/AsyncTCP/actions/workflows/ci.yml)
7+
[![PlatformIO Registry](https://badges.registry.platformio.org/packages/ESP32Async/library/AsyncTCP.svg)](https://registry.platformio.org/libraries/ESP32Async/AsyncTCP)
8+
9+
Project moved to [ESP32Async](https://github.com/organizations/ESP32Async) organization at [https://github.com/ESP32Async/AsyncTCP](https://github.com/ESP32Async/AsyncTCP)
410

511
Discord Server: [https://discord.gg/X7zpGdyUcY](https://discord.gg/X7zpGdyUcY)
612

@@ -11,3 +17,56 @@ Please see the new links:
1117
- `ESP32Async/ESPAsyncTCP @ 2.0.0` (ESP8266)
1218
- `https://github.com/ESP32Async/AsyncTCPSock/archive/refs/tags/v1.0.3-dev.zip` (AsyncTCP alternative for ESP32)
1319
- `khoih-prog/AsyncTCP_RP2040W @ 1.2.0` (RP2040)
20+
21+
### Async TCP Library for ESP32 Arduino
22+
23+
This is a fully asynchronous TCP library, aimed at enabling trouble-free, multi-connection network environment for Espressif's ESP32 MCUs.
24+
25+
This library is the base for [ESPAsyncWebServer](https://github.com/ESP32Async/ESPAsyncWebServer)
26+
27+
## AsyncClient and AsyncServer
28+
29+
The base classes on which everything else is built. They expose all possible scenarios, but are really raw and require more skills to use.
30+
31+
## Changes
32+
33+
- `library.properties` for Arduino IDE users
34+
- Add `CONFIG_ASYNC_TCP_MAX_ACK_TIME`
35+
- Add `CONFIG_ASYNC_TCP_PRIORITY`
36+
- Add `CONFIG_ASYNC_TCP_QUEUE_SIZE`
37+
- Add `setKeepAlive()`
38+
- Arduino 3 / ESP-IDF 5 compatibility
39+
- Better CI
40+
- Better example
41+
- Customizable macros
42+
- Fix for "Required to lock TCPIP core functionality". Ref: https://github.com/ESP32Async/AsyncTCP/issues/27 and https://github.com/espressif/arduino-esp32/issues/10526
43+
- Fix for "ack timeout 4" client disconnects.
44+
- Fix from https://github.com/me-no-dev/AsyncTCP/pull/173 (partially applied)
45+
- Fix from https://github.com/me-no-dev/AsyncTCP/pull/184
46+
- IPv6
47+
- LIBRETINY support
48+
- LibreTuya
49+
- Reduce logging of non critical messages
50+
- Use IPADDR6_INIT() macro to set connecting IPv6 address
51+
- xTaskCreateUniversal function
52+
53+
## Coordinates
54+
55+
```
56+
ESP32Async/AsyncTCP @ ^3.3.2
57+
```
58+
59+
## Important recommendations
60+
61+
Most of the crashes are caused by improper configuration of the library for the project.
62+
Here are some recommendations to avoid them.
63+
64+
I personally use the following configuration in my projects:
65+
66+
```c++
67+
-D CONFIG_ASYNC_TCP_MAX_ACK_TIME=5000 // (keep default)
68+
-D CONFIG_ASYNC_TCP_PRIORITY=10 // (keep default)
69+
-D CONFIG_ASYNC_TCP_QUEUE_SIZE=64 // (keep default)
70+
-D CONFIG_ASYNC_TCP_RUNNING_CORE=1 // force async_tcp task to be on same core as the app (default is core 0)
71+
-D CONFIG_ASYNC_TCP_STACK_SIZE=4096 // reduce the stack size (default is 16K)
72+
```

0 commit comments

Comments
 (0)