Timeout on HTTPSClient ESP WROOM 32

mysran
Posts: 2
Joined: Thu Jun 15, 2023 10:46 am

Timeout on HTTPSClient ESP WROOM 32

Postby mysran » Thu Jun 15, 2023 12:37 pm

Hello,

I am using HTTPClient for getting and posting the sensor data. In the beginning after following the example in BasicHTTPSClient.ino could not send or get the data from the server. I had to change the HTTPS begin() to use the fingerprint instead of certificate and it worked. The client works good even till 1 hr/2 hrs and get back 200 as the code from server but after sometime I am facing a problem where I am receiving -11 readout error. I tried increasing the timing of the timeout to 50 sec but that also didn't help. I end up getting -11 error. Following is the error lines I am getting in the serial monitor.

[V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
[V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
[W][HTTPClient.cpp:1327] returnError(): error(-11): read Timeout
[D][HTTPClient.cpp:1329] returnError(): tcp stop
[V][ssl_client.cpp:248] stop_ssl_socket(): Cleaning SSL connection.

When I try to close the HTTP connection and re-negotiate it then I get -11 error, I am getting the below problem.

[E][ssl_client.cpp:33] _handle_error(): [start_ssl_client():122]: (-8576) X509 - The CRT/CRL/CSR format is invalid, e.g. different type expected

Need help in solving this problem.

Regards,
Mysran

mysran
Posts: 2
Joined: Thu Jun 15, 2023 10:46 am

Re: Timeout on HTTPSClient ESP WROOM 32

Postby mysran » Mon Jun 19, 2023 4:21 am

Hello,

Can anyone help me on this.

Regards,
Mysran

Who is online

Users browsing this forum: No registered users and 63 guests