This repository is serving as a cheatsheet of sorts, taking from many sources and transposing into a collection of runnable examples using platform.io and mostly targetting esp8266 dev boards, although with platformio should be easily adaptable.
- Copy
_config/secrets.template.h
as_config/secrets.h
and fill in with your credentials as needed.
- NOTE:
secrets.h
is gitignored so this shouldn't be a problem if you fork the repo, just noting here as an FYI
- Each sub directory is a standalone platformio project, refer to the platformio docs for details (I'll add info around this here when I get a chance)
As mentioned most of the examples target the esp8266 type development boards. More specifically I tend to use the Witty Cloud boards like the one found here or the Wemos D1 mini as they are cheap and convenient for prototyping.
pio run
will build the project (run from within a sub directory)pio run -t upload
to upload to boardpio run -t clean
to clean/prep for fresh buildpio device monitor
to open serial monitor