Hi there,
I’m using the Beetle ESP32 C6 Mini board and have a project which has been working until now to connect to one of a number of WiFi networks using code with WiFiMulti
.
My project runs off a LiPo battery connected across the BAT
/GND
pins and charged using the on-board lithium charging, which seems to work fine. I recently allowed the battery to run down fully overnight (in order to get a feel for battery life etc) and tracked battery voltage via some network calls. As expected, the battery voltage gradually decreased overnight and then dropped off, at which point I stopped “hearing” from the device.
The problem is that since then, the board has refused to connect to WiFi. This is tested on the two networks it was previously happily working on, and a new one. In all cases, it now hangs on waiting for a
while (wifiMulti.run() != WL_CONNECTED) { delay(1); }
line. I can include surrounding code if necessary but I believe this to be possibly a firmware / hardware issue since I haven’t changed the code since it worked. The only lines concerning this are basically:
WiFiMulti wifiMulti;
wifiMulti.addAP(WIFI_NETWORK_NAME_1, WIFI_NETWORK_PASSWORD_1);
wifiMulti.addAP(WIFI_NETWORK_NAME_2, WIFI_NETWORK_PASSWORD_2);
while (wifiMulti.run() != WL_CONNECTED) { delay(1); }
Serial.print(WiFi.SSID());
Questions I’ve wondered but can’t answer:
1. Does the board have any kind of cached network information that may have become corrupted when power unexpectedly fell off?
2. Could the networking hardware itself have somehow become damaged in losing power in this way? That’d be surprising to me since this board is designed to run in this way from a LiPo battery.
Any help would be massively appreciated, thank you! It’s very frustrating to have something stop working for reasons you can’t get your head around!