Is there any way we can use -D option which is in arm-gcc from particle compile.
so that we can use #define and pass it from particle compile to the firmware. so that we can set any variable which is being used in the firmware dynamically from cli its very handly option.
Setting defines for a cloud compile, whether from the CLI or the API, is not supported.
Building locally with the gcc-arm compiler in Particle Workbench, you can add extra flags from the command line including -D.
1 Like
Having a -D option for CLI or API would be great (especially CLI), but thanks @rickkas7, at least the local compile is an option.
1 Like