Here is the new simplified same code:
#include<WiFi.h>
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
here is the pertinent part of the error message:
In file included from C:\Users\nesto\Arduino\hardware\espressif\esp32\libraries\WiFi\src\ETH.cpp:21:
C:\Users\nesto\Arduino\hardware\espressif\esp32\libraries\WiFi\src\ETH.h:54:9: error: 'eth_config_t' does not name a type; did you mean 'gpio_config_t'?
The error has nothing to do with the text outside the braces. That was my copy/paste error. I think the problem is in the esp32 WiFi.h library