This code powers various IoT devices set up at my house, including light switches and garage door sensors. The idea is that with all of the code in one place, sharing utilities between projects is easier.
This project uses PlatformIO, which manages the various dependencies and build configurations.
To compile the entire project directly, use this command.
platformio run
Or, to compile the project for a specific configuration, use the --environment
flag.
platformio run --environment office-light
To upload the project using Over-The-Air updates, use the --target
flag.
platformio run --environment office-light --target upload