Iwhich board have I to select for the ESP32-DevKitC-VIE? I choosed "ESP32 WRovwe (all versions). But when I want to compile an example from the library "MySql_MariaDB_Generic", I can not compile it. In this code they use
#if ! (ESP8266 || ESP32 )
#error This code is intended to run on the ESP8266/ESP32 platform! Please check your Tools->Board setting
#endif
And it doesn't have set ESP32. Is this the wrong board or where can I get the correct one?
Try an older version of the ESP32 platform. I looked at the platform.txt of version 2.0.2 and it contains -DESP32. Version 3.3.11 contains -DESP32=ESP32.
A reasonable safe bet is version 2.0.17.
It is not possible to edit platform configuration files using Arduino IDE. If you do want to edit a platform configuration file, you should use a programmer grade general purpose text editor.
Some good options are VS Code or **Notepad++, but there are plenty of other excellent free open source editors.
Arduino IDE loads the platform configuration file on startup, and so won't automatically reflect changes you make while Arduino IDE is running. So if you do edit the platform configuration files, make sure to either restart Arduino IDE, or else select Tools > Reload Board Data from the Arduino IDE menus.
The problem is, that this variable is used in the library "MySQL_MariaDB_Generic" and not only in the example. But I Think I have found a possibility not to use this library.