Get stored WiFi AP and STA info

If information about stored WiFi AP or WiFi STA configuration is needed before the WiFi AP is connected or the WiFi STA is activated,  ESP-IDF provides the function esp_wifi_get_config() which fills the structure of the type wifi_config_t

wifi_ap_config_t contains information about the stored AP configuration

wifi_sta_config_t contains information about the stored STA configuration

The following method prints this information to the serial.

The output would look alike this:

A modified version of this code is in Github Repo.


Leave a Reply

Your email address will not be published. Required fields are marked *

Free Link Directory