Refactor the increasingly complex wifi code into its own header, update some docs.

This commit is contained in:
Anna Rose Wiggins 2020-05-13 02:15:44 -04:00
parent bca75ff5e6
commit 3569508c88
3 changed files with 97 additions and 41 deletions

View file

@ -37,7 +37,7 @@ only be high for a short time. 1 is for latched mode; the pin will stay high unt
## Building
**TODO**
Just run `make` to build the code. You need to have `config.h` and `data/ca_cert.pem` defined.
## Webhook data
@ -49,3 +49,9 @@ The webhook should always return a page in the following (JSON-compatible) forma
Where index and state are both integers. If you are expecting momentary input, you should return the
state to '0' after the page is served / the webhook is consumed.
## Future Improvements
* make it actually work...
* use WifiManager?