Closed
Description
I'm trying to set a connection timeout before opening a wifi connection.
My code is:
const uint32_t RESPONSE_TIMEOUT = 30;
WiFiClientSecure client;
client.setTimeout(RESPONSE_TIMEOUT);
if (!client.connect(currentHost.c_str(), port)) {
ESP_LOGI(TAG, "Cannot connect to %s", currentHost.c_str());
display(3, " E", "connection lost");
goto failure;
}
This openes the wifi connection successful, but it logs this error:
[E][WiFiClient.cpp:236] setSocketOption(): 1006 : 9
0x1006 is defined as
#define SO_RCVTIMEO 0x1006 /* receive timeout */
but what means error 9 ?
Metadata
Metadata
Assignees
Labels
No labels