Skip to content

Handling multiple AsyncClients #34

Answered by mobizt
peterz0310 asked this question in Q&A
Discussion options

You must be logged in to vote

If you need 4 async tasks which included stream, and you don't mind that all tasks need to run simultaneously, you can use only 2 async client, i.e. one async client for stream and another for other async tasks which run one by one from FIFO queue.

Note that only two TCP socket connections from two SSL client.

If you want to run concurrent async tasks using 4 async clients (4 SSL Clients, 4 socket connections), you can use ESP_SSLClient that comes with this library as wrote in Readme which it works in the same way as in ESP8266 WiFiClientSecure which the buffer size can be set.

This is the example for how to use it.

The ESP_SSLClient repo is here is here for your reference (do not install…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@peterz0310
Comment options

@mobizt
Comment options

Answer selected by peterz0310
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants