mirror of
https://github.com/espressif/esp-idf-template.git
synced 2025-10-09 11:50:59 +00:00
WIFI_INIT_CONFIG_DEFAULT() takes no arguments
This commit is contained in:
@@ -17,7 +17,7 @@ int app_main(void)
|
||||
system_init();
|
||||
tcpip_adapter_init();
|
||||
ESP_ERROR_CHECK( esp_event_loop_init(event_handler, NULL) );
|
||||
wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT(esp_event_loop_get_queue() );
|
||||
wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
|
||||
ESP_ERROR_CHECK( esp_wifi_init(&cfg) );
|
||||
ESP_ERROR_CHECK( esp_wifi_set_storage(WIFI_STORAGE_RAM) );
|
||||
ESP_ERROR_CHECK( esp_wifi_set_mode(WIFI_MODE_STA) );
|
||||
|
Reference in New Issue
Block a user