Update multiple datastreams with connection keep-alive

Hi everyone,

I’m working on a project using the Blynk HTTP RESTful API (/external/api/batch/update) with a SIM7000G modem and TinyGSM library. I’ve noticed that when using Connection: keep-alive, only the first request updates the datastreams, and subsequent requests don’t seem to work unless I close the connection each time with Connection: close. This results in slower data sending due to the need to reconnect.

Is it possible to maintain an HTTP connection open for a period to send data more quickly (e.g., reusing the connection for multiple updates)? If so, what is the time limit for keeping the connection alive before it times out or gets closed by the Blynk server? Any insights or workarounds would be greatly appreciated!

Thanks,

If you use the HTTP rather than HTTPS API call then it connects much faster…

Pete.