I have a ESP32-CAM, it only allows one client to access the camera web page per time, it will return a 400 code if there is a already a client opened this web page. The problem is, sometime the web server returns a 400 code when there isn't any client using the web, an error/bug I guess. What I did is using
to make GET request on the web it's hosting, if the return code is 400, I restart the service, now I realise that I need to know if the web is actually down or there is just a client using the web.
Is there a function that can tell the number of clients that opened the web? Or perhaps any other solutions to this issue? Thanks!