'Environment Variables in Arduino IDE?

How to create and access the environment variables in Arduino IDE?

In my case, I want to connect the AWS IoT MQTT endpoint but am worried to save the certificate and private key in the file and in VCS (in that case I have to add the file in .gitignore)



Solution 1:[1]

This accomplishes the goal I believe, but using a header file:

Environment Variables for Arudino / ESP32 module code

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 aakoch