Skip to content

About

Async TCP Library for ESP8266

Resources

Code of conduct

Security policy

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

156 Commits

Folders and files

Repository files navigation

https://avatars.githubusercontent.com/u/195753706?s=96&v=4

ESPAsyncTCP

Project moved to esphome-libs at https://github.com/esphome-libs/ESPAsyncTCP

Discord Server: https://discord.gg/X7zpGdyUcY

Please see the new links:

  • ESP32Async/ESPAsyncWebServer @ 3.6.0 (ESP32, ESP8266, RP2040)
  • ESP32Async/AsyncTCP @ 3.3.2 (ESP32)
  • esphome-libs/ESPAsyncTCP @ 2.1.0 (ESP8266)
  • https://github.com/ESP32Async/AsyncTCPSock/archive/refs/tags/v1.0.3-dev.zip (AsyncTCP alternative for ESP32)
  • khoih-prog/AsyncTCP_RP2040W @ 1.2.0 (RP2040)

Async TCP Library for ESP8266 Arduino

For ESP32 look 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

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.

TLS errors

When SSL is enabled, AsyncClient::onError() may report ASYNC_TCP_ERROR_DNS_FAILED, ASYNC_TCP_ERROR_TLS_HANDSHAKE_FAILED, or ASYNC_TCP_ERROR_TLS_FAILED. BearSSL handshake errors that fit in err_t are reported directly and can be translated with AsyncClient::errorToString().

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 AsyncClientis 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

About

Async TCP Library for ESP8266

Resources

Code of conduct

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages