I tracked back through the code and it hangs in the ssl_client.cpp file at this line:
Code: Select all
if (lwip_connect(ssl_client->socket, (struct sockaddr *)&serv_addr, sizeof(serv_addr)) == 0) {
In my case for testing I just turn on the parental block on my router for the esp device so that it can't reach the outside world.
Is there a way to adjust the timeout for the lwip_connect? How is this https use of this different from the http?
The 18 second block is too long for my application. Any advice would be appreciated.