WIFI_INIT_CONFIG_DEFAULT() takes no arguments
This commit is contained in:
parent
1305a6f73b
commit
bbf4cd7259
|
@ -17,7 +17,7 @@ int app_main(void)
|
||||||
system_init();
|
system_init();
|
||||||
tcpip_adapter_init();
|
tcpip_adapter_init();
|
||||||
ESP_ERROR_CHECK( esp_event_loop_init(event_handler, NULL) );
|
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_init(&cfg) );
|
||||||
ESP_ERROR_CHECK( esp_wifi_set_storage(WIFI_STORAGE_RAM) );
|
ESP_ERROR_CHECK( esp_wifi_set_storage(WIFI_STORAGE_RAM) );
|
||||||
ESP_ERROR_CHECK( esp_wifi_set_mode(WIFI_MODE_STA) );
|
ESP_ERROR_CHECK( esp_wifi_set_mode(WIFI_MODE_STA) );
|
||||||
|
|
Loading…
Reference in New Issue