PlatformIO Community

CLion plugin, Tasmota and ifdef

Hi!

I’m using CLion with the PlatformIO plugin.

I’m trying to write some code for Tasmota, but I noticed that all .ino files (xdrv_*.ino) are like the following image:

Screenshot_20210911_192943

it seems that inspector doesn’t see the definition of USE_WEBSERVER (and likewise for any .ino files) although it’s defined in a header file called “my_user_config.h”.

What could be the problem?

Thank you.

Have you tried converting it to a .cpp file?

Otherwise make sure the you have the correct environment referenced in the CMake profile (docs).

No. I don’t want to make too many changes to original project.

Thank you for the doc links.