Using PlatformIO I can get programs that do not use wifi working on my esp32. When I try an example that uses wifi, however, the esp32 continuously reboots.
I have separately also installed the compiler and esp-idf directly from Espressif. With those I can get the examples with wifi working. If I use the exact same code (with sdkconfig translated into a .h file) in PlatformIO it continuously reboots again.
What am I doing wrong?