It seems to me that there is a bug when changing wifi.
I moved my hardware to another location (another wifi), I got the page 192.168.4.1 and I was able to configure the new wifi. It worked. When I came home with it, I wanted to put the old wifi back on. The page 192.168.4.1 is there, I was able to choose my wifi, the connection is made but when I reboot it still tries to connect to the previous wifi.
Weird thing:
When scanning the previous wifi appears in the list even though it is not present where I am staying.
The backup access point is still visible when connected to my home network and both are accessible.
I was able to unblock it by doing "wifi_erase_config -la" in the console.
In the logs, the only abnormal thing I see is:
E (97215) network: network manager Unhandled Event NETWORK_WIFI_CONFIGURING_ACTIVE_STATE(WIFI_CONFIGURING_STATE) [EN_CONNECTED] E (99285) network: network manager Unhandled Event NETWORK_WIFI_CONFIGURING_ACTIVE_STATE(WIFI_CONFIGURING_STATE) [EN_GOT_IP]
I have the impression that it cannot overwrite old wifi data.
It seems to me that there is a bug when changing wifi. I moved my hardware to another location (another wifi), I got the page 192.168.4.1 and I was able to configure the new wifi. It worked. When I came home with it, I wanted to put the old wifi back on. The page 192.168.4.1 is there, I was able to choose my wifi, the connection is made but when I reboot it still tries to connect to the previous wifi. Weird thing:
I was able to unblock it by doing "wifi_erase_config -la" in the console.
In the logs, the only abnormal thing I see is:
E (97215) network: network manager Unhandled Event NETWORK_WIFI_CONFIGURING_ACTIVE_STATE(WIFI_CONFIGURING_STATE) [EN_CONNECTED]
E (99285) network: network manager Unhandled Event NETWORK_WIFI_CONFIGURING_ACTIVE_STATE(WIFI_CONFIGURING_STATE) [EN_GOT_IP]
I have the impression that it cannot overwrite old wifi data.
I use a 16MB ESP32-Wrover-B with firmware v1572