I was thinking of using the last six digits of the device MAC in combination with a string for the AP SSID. The logic is:
1. Upon boot, check if "first_run" variable in NVS is existing
2/ If not existing, set it and create a record for AP SSID using AP interface MAC address
Step 2 above needs to make a call to
Code: Select all
esp_wifi_get_mac(ESP_IF_WIFI_AP, mac)
Is there a way to get the MAC address without initializing the WiFi?
Also I'd like to hear some other strategy for generating unique (per device) AP SSIDs, if someone can suggest one.
Thanks