Handling multiple AsyncClients #34
-
Hey, I need some advice on how to manage multiple In another part of the code, I'm making an HTTP get request to download a file to an SD card using the HTTPClient library. I'm getting weird errors which make me think it's running out of memory or something. This never happened before when using your other Firebase library, so I think it's something to do with my new setup. Thanks for the help. Peter |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
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 This is the example for how to use it. The |
Beta Was this translation helpful? Give feedback.
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 inESP8266 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…