diff --git a/.github/scripts/on-push.sh b/.github/scripts/on-push.sh index 7ae8c43..978985f 100755 --- a/.github/scripts/on-push.sh +++ b/.github/scripts/on-push.sh @@ -7,7 +7,7 @@ if [ ! -z "$TRAVIS_BUILD_DIR" ]; then export GITHUB_REPOSITORY="$TRAVIS_REPO_SLUG" elif [ -z "$GITHUB_WORKSPACE" ]; then export GITHUB_WORKSPACE="$PWD" - export GITHUB_REPOSITORY="me-no-dev/ESPAsyncTCP" + export GITHUB_REPOSITORY="ESP32Async/ESPAsyncTCP" fi CHUNK_INDEX=$1 @@ -34,7 +34,7 @@ if [ "$BUILD_PIO" -eq 0 ]; then build_sketches "$FQBN" "$GITHUB_WORKSPACE/examples" if [ ! "$OS_IS_WINDOWS" == "1" ]; then echo "Installing ESPAsyncWebServer ..." - git clone https://github.com/me-no-dev/ESPAsyncWebServer "$ARDUINO_USR_PATH/libraries/ESPAsyncWebServer" > /dev/null 2>&1 + git clone https://github.com/ESP32Async/ESPAsyncWebServer "$ARDUINO_USR_PATH/libraries/ESPAsyncWebServer" > /dev/null 2>&1 echo "Installing ArduinoJson ..." git clone https://github.com/bblanchon/ArduinoJson "$ARDUINO_USR_PATH/libraries/ArduinoJson" > /dev/null 2>&1 @@ -53,8 +53,8 @@ else if [[ "$OSTYPE" != "cygwin" ]] && [[ "$OSTYPE" != "msys" ]] && [[ "$OSTYPE" != "win32" ]]; then echo "Installing ESPAsyncWebServer ..." - python -m platformio lib -g install https://github.com/me-no-dev/ESPAsyncWebServer.git > /dev/null 2>&1 - git clone https://github.com/me-no-dev/ESPAsyncWebServer "$HOME/ESPAsyncWebServer" > /dev/null 2>&1 + python -m platformio lib -g install https://github.com/ESP32Async/ESPAsyncWebServer.git > /dev/null 2>&1 + git clone https://github.com/ESP32Async/ESPAsyncWebServer "$HOME/ESPAsyncWebServer" > /dev/null 2>&1 echo "Installing ArduinoJson ..." python -m platformio lib -g install https://github.com/bblanchon/ArduinoJson.git > /dev/null 2>&1 diff --git a/README.ESP32Async.md b/README.ESP32Async.md new file mode 100644 index 0000000..4f29656 --- /dev/null +++ b/README.ESP32Async.md @@ -0,0 +1,31 @@ +# ESPAsyncTCP + +Discord Server: [https://discord.gg/X7zpGdyUcY](https://discord.gg/X7zpGdyUcY) + +### Async TCP Library for ESP8266 Arduino + +For ESP32 look [https://github.com/ESP32Async/AsyncTCP](https://github.com/ESP32Async/AsyncTCP) + +This is a fully asynchronous TCP library, aimed at enabling trouble-free, multi-connection network environment for Espressif's ESP8266 MCUs. + +This library is the base for [https://github.com/ESP32Async/ESPAsyncWebServer](https://github.com/ESP32Async/ESPAsyncWebServer) + +## AsyncClient and AsyncServer +The base classes on which everything else is built. They expose all possible scenarios, but are really raw and require more skills to use. + +## AsyncPrinter +This class can be used to send data like any other ```Print``` interface (```Serial``` for example). +The object then can be used outside of the Async callbacks (the loop) and receive asynchronously data using ```onData```. The object can be checked if the underlying ```AsyncClient```is connected, or hook to the ```onDisconnect``` callback. + +## AsyncTCPbuffer +This class is really similar to the ```AsyncPrinter```, but it differs in the fact that it can buffer some of the incoming data. + +## SyncClient +It is exactly what it sounds like. This is a standard, blocking TCP Client, similar to the one included in ```ESP8266WiFi``` + +## Libraries and projects that use AsyncTCP +- [ESP Async Web Server](https://github.com/ESP32Async/ESPAsyncWebServer) +- [Async MQTT client](https://github.com/marvinroger/async-mqtt-client) +- [arduinoWebSockets](https://github.com/Links2004/arduinoWebSockets) +- [ESP8266 Smart Home](https://github.com/baruch/esp8266_smart_home) +- [KBox Firmware](https://github.com/sarfata/kbox-firmware) diff --git a/README.md b/README.md index aac448a..345e646 100644 --- a/README.md +++ b/README.md @@ -1,33 +1,13 @@ -# ESPAsyncTCP +![https://avatars.githubusercontent.com/u/195753706?s=96&v=4](https://avatars.githubusercontent.com/u/195753706?s=96&v=4) -A fork of the [AsyncTCP](https://github.com/me-no-dev/AsyncTCP) library by [@me-no-dev](https://github.com/me-no-dev) for [ESPHome](https://esphome.io). +# Project moved to [ESP32Async](https://github.com/organizations/ESP32Async) organization at [https://github.com/ESP32Async/ESPAsyncTCP](https://github.com/ESP32Async/ESPAsyncTCP) -### Async TCP Library for ESP8266 Arduino +Discord Server: [https://discord.gg/X7zpGdyUcY](https://discord.gg/X7zpGdyUcY) -For ESP32 look [HERE](https://github.com/me-no-dev/AsyncTCP) +Please see the new links: -[![Join the chat at https://gitter.im/me-no-dev/ESPAsyncWebServer](https://badges.gitter.im/me-no-dev/ESPAsyncWebServer.svg)](https://gitter.im/me-no-dev/ESPAsyncWebServer?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) - -This is a fully asynchronous TCP library, aimed at enabling trouble-free, multi-connection network environment for Espressif's ESP8266 MCUs. - -This library is the base for [ESPAsyncWebServer](https://github.com/me-no-dev/ESPAsyncWebServer) - -## AsyncClient and AsyncServer -The base classes on which everything else is built. They expose all possible scenarios, but are really raw and require more skills to use. - -## AsyncPrinter -This class can be used to send data like any other ```Print``` interface (```Serial``` for example). -The object then can be used outside of the Async callbacks (the loop) and receive asynchronously data using ```onData```. The object can be checked if the underlying ```AsyncClient```is connected, or hook to the ```onDisconnect``` callback. - -## AsyncTCPbuffer -This class is really similar to the ```AsyncPrinter```, but it differs in the fact that it can buffer some of the incoming data. - -## SyncClient -It is exactly what it sounds like. This is a standard, blocking TCP Client, similar to the one included in ```ESP8266WiFi``` - -## Libraries and projects that use AsyncTCP -- [ESP Async Web Server](https://github.com/me-no-dev/ESPAsyncWebServer) -- [Async MQTT client](https://github.com/marvinroger/async-mqtt-client) -- [arduinoWebSockets](https://github.com/Links2004/arduinoWebSockets) -- [ESP8266 Smart Home](https://github.com/baruch/esp8266_smart_home) -- [KBox Firmware](https://github.com/sarfata/kbox-firmware) +- `ESP32Async/ESPAsyncWebServer @ 3.6.0` (ESP32, ESP8266, RP2040) +- `ESP32Async/AsyncTCP @ 3.3.2` (ESP32) +- `ESP32Async/ESPAsyncTCP @ 2.0.0` (ESP8266) +- `khoih-prog/AsyncTCP_RP2040W @ 1.2.0` (RP2040) +- `https://github.com/ESP32Async/AsyncTCPSock/archive/refs/tags/v1.0.3-dev.zip` (AsyncTCP alternative for ESP32) diff --git a/library.json b/library.json index 0538519..251594c 100644 --- a/library.json +++ b/library.json @@ -1,22 +1,19 @@ { - "name":"ESPAsyncTCP-esphome", + "name":"ESPAsyncTCP", "description":"Asynchronous TCP Library for ESP8266", "keywords":"async,tcp", "authors": { - "name": "Hristo Gochkov", + "name": "ESP32Async", "maintainer": true }, "repository": { "type": "git", - "url": "https://github.com/esphome/ESPAsyncTCP.git" + "url": "https://github.com/ESP32Async/ESPAsyncTCP.git" }, "version": "2.0.0", "license": "LGPL-3.0", "frameworks": "arduino", - "platforms": "espressif8266", - "build": { - "libCompatMode": 2 - } + "platforms": "espressif8266" } diff --git a/library.properties b/library.properties index be39639..7fe904e 100644 --- a/library.properties +++ b/library.properties @@ -1,9 +1,9 @@ -name=ESPAsyncTCP-esphome +name=ESP AsyncTCP version=2.0.0 -author=Me-No-Dev -maintainer=ESPHome +author=ESP32Async +maintainer=ESP32Async sentence=Async TCP Library for ESP8266 and ESP31B paragraph=Async TCP Library for ESP8266 and ESP31B category=Other -url=https://github.com/esphome/ESPAsyncTCP.git +url=https://github.com/ESP32Async/ESPAsyncTCP architectures=*