Closed
Description
How do I debug espconn_gethostbyname? I call it to retrieve the IP of "api.openweathermap.org". Sometimes (for a few hours in a row) it returns ERR_MEM although there should be more than enough memory available. I print the amount of free heap in the log and it is always around 49264 bytes more or less.
Has anyone experienced a similar behavior?
I suspect there is a fixed buffer inside the espconn_gethostbyname function which is too small for some requests. Maybe Espressif can enlighten us.
Edit:
dns is part of lwip, so I enabled debugging there and will report back new findings.
Metadata
Metadata
Assignees
Labels
No labels