EHOSTUNREACH: cause and recovery?

User avatar
mzimmers
Posts: 643
Joined: Wed Mar 07, 2018 11:54 pm
Location: USA

EHOSTUNREACH: cause and recovery?

Postby mzimmers » Thu Dec 17, 2020 10:39 pm

Hi all -

I'm running several units of a product based on the WROVER, IDF release/v4.1 on a network. Occasionally, one of the units will produce this error:
  1. #define EHOSTUNREACH 118    /* Host is unreachable */
on a socket write. The units keep WiFi online while on mains power, and the WiFi seems fine (no error reported).

Any ideas on what might cause this? And, as far as recovering from it, I've tried closing and re-creating the socket, but that doesn't help. The only other thing I can think of doing is disconnecting and reconnecting WiFi, which seems a little drastic. Can anyone think of an intermediate alternative?

Thanks...

Who is online

Users browsing this forum: Bing [Bot], uC_Jon and 144 guests