I have a wifi provisioning code which allows esp32-s3 to connect to a wifi ssid successfully. But shortly thereafter, it disconnects from the wifi network. This problem began suddenly after working perfectly fine for several days with the same code. The same code works perfectly fine on a second esp32-s3 chip, which stays connected to the network following a successful connection. Is there anyway to check the status or condition of the WiFi hardware on the esp32-s3 to see why it suddenly started to disconnect from the wifi network after first connecting successfully to it? The error messages I’m getting aren’t really helpful in investigating the issue.
Here's the error log that goes in an endless loop (and believe me, the host is not unreachable):
E (7814636) esp-tls: [sock=54] connect() error: Host is unreachable
E (7814636) transport_base: Failed to open a new connection: 32772
E (7814646) mqtt_client: Error transport connect