VSCode PlaformIO NodeMCU esp8266-nonos-sdk - Cannot compile

Found the problem.
I was using a .cpp extension.
renaming to user_main.c solved it!

1 Like