1 of 1 people found this helpful
Actually, from the code it is using global way to define a http_request_t.
I found http_request_t init and delete is in the same function like sensors_http_post in our demo.
and I guess your concern is http_request_deinit() is not finished in another thread before a new https_post request is coming, is that right ? If really care about this, I think we can have a try to add flags before the http_request_init. if deinit is on-going , we can add a small waiting to check the flag again.