https://technicalustad.com/program-esp32-with-arduino-ide-with-c/
How to Program Esp32 with Arduino IDE with C++