-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Closed
Labels
3.0 migrationIssue relates to migration from 2.X to 3.X versionIssue relates to migration from 2.X to 3.X versionStatus: Awaiting ResponseAwaiting a response from the authorAwaiting a response from the author
Description
Board
ESP32-Mini 1U
Device Description
Hardware Configuration
Version
v3.1.1
IDE Name
VSCode
Operating System
Linux
Flash frequency
40Mhz
PSRAM enabled
no
Upload speed
115200
Description
- When calling
WiFi.macAddress()
beforeWiFi.begin()
, we cannot get the MAC address. - With Arduino 2, it worked because it used
esp_read_mac()
as fallback, if WiFi was not initialized yet. - If we call
WiFi.begin()
, our station does not work correctly, we cannot see the WiFi with another device. In Addition, the WiFiAccessPoint example also does not callWiFi.begin()
- Reading the MAC address with
esp_read_mac(mac, ESP_MAC_WIFI_STA)
works fine though, without initializing the WiFi first.
Sketch
setup()
{
auto mac = WiFi.macAddress();
// mac is 00:00:00:00:00:00
// do some magic to generate an SSID
WiFi.softAP(name.c_str(), passwd.c_str());
...
}
Debug Message
-
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.
Metadata
Metadata
Assignees
Labels
3.0 migrationIssue relates to migration from 2.X to 3.X versionIssue relates to migration from 2.X to 3.X versionStatus: Awaiting ResponseAwaiting a response from the authorAwaiting a response from the author