- In file WiFiClient.cpp (in esp32 directory), go to line 195 and then comment the whole
if
block. It will look like this
int WiFiClient::available()
{
if(!_connected) {
return 0;
}
int count;
int res = ioctl(sockfd, FIONREAD, &count);
// if(res < 0) {
// log_e("%d", errno);
// stop();
// return 0;
// }
return count;
}