ESP32 is not listed in the WiFi List. Can't find it while in AP Mode anymore
Posted: Tue Apr 27, 2021 8:30 am
Board: ESP32-EVB(WROOM-32U)
Core Installation version:
Description:
Can't find ESP32 on the Wireless device list using phone or PC.
It happened suddenly while I was testing some code.
There are no error messages. The ESP32 isn't visible anymore.
I've tried:
Debug Messages:
Core Installation version:
Code: Select all
platformio/contrib-piohome 3.3.4 @ ~3.3.4
platformio/tool-scons 4.40100.2 @ ~4.40100.2
Platform Manager
================
Platform espressif32
--------
platformio/espressif32 3.2.0
platformio/toolchain-xtensa32 2.50200.97 @ ~2.50200.0
platformio/framework-arduinoespressif32 3.10006.210326 @ ~3.10006.0
platformio/tool-esptoolpy 1.30000.201119 @ ~1.30000.0
platformio/tool-mkspiffs 2.230.0 @ ~2.230.0
IDE name: PlatformIO 5.1.1 on VSC v1.55
Flash Frequency: 80000000L
PSRAM enabled: no
Computer OS: Linux Mint
Can't find ESP32 on the Wireless device list using phone or PC.
It happened suddenly while I was testing some code.
There are no error messages. The ESP32 isn't visible anymore.
I've tried:
- resetting by pressing the RST button;
- plugging and unplugging the USB cord;
- uploading the code again.
Code: Select all
#include <Arduino.h>
void startAP()
{
if (SPIFFS.exists("/network.txt"))
SPIFFS.remove("/network.txt");
String x = "ESP-";
x.concat(random(100, 999));
char ssidAP[x.length() + 1];
x.toCharArray(ssidAP, sizeof(ssidAP));
logOutput("Starting AP ... ");
logOutput(WiFi.softAP(ssidAP, passwordAP) ? (String)ssidAP + " ready" : "WiFi.softAP failed ! (Password must be at least 8 characters long )");
delay(500);
logOutput("Setting AP configuration ... ");
logOutput(WiFi.softAPConfig(local_IP_AP, gatewayAP, subnetAP) ? "Ready" : "Failed!");
delay(500);
logOutput("Soft-AP IP address: ");
logOutput(WiFi.softAPIP().toString());
}
void setup()
{
if(go_into_station)
{
// STA_MODE code
}
else
{
Serial.println(WiFi.mode(WIFI_AP) ? "Controller went in AP Mode !" : "Controller couldn't go in AP_MODE. AP_STA_MODE
will start.");
startAP();
}
}
void loop() {
delay(2)
}
Code: Select all
[D][WiFiGeneric.cpp:374] _eventCallback(): Event: 0 - WIFI_READY
Controller went in AP Mode !
[D][WiFiGeneric.cpp:374] _eventCallback(): Event: 14 - AP_START
Starting AP ...
ESP-472 ready
[D][WiFiGeneric.cpp:374] _eventCallback(): Event: 14 - AP_START
[D][WiFiGeneric.cpp:374] _eventCallback(): Event: 14 - AP_START
Setting AP configuration ...
Ready
Soft-AP IP address:
109.108.112.114