WiFi credentials

Changed local.h to include/ssid_config.h and added instructions on how
to keep your WiFi credentials safe from Github.
This commit is contained in:
Johan Kanflo 2015-07-28 23:56:47 +02:00
parent 1cb2de5b96
commit 0e521a74a9
5 changed files with 39 additions and 15 deletions

View file

@ -21,12 +21,15 @@ git clone --recursive https://github.com/Superhouse/esp-open-rtos.git
cd esp-open-rtos
```
* To build any examples that use WiFi, create a file "local.h" in the top-level directory and add two macro defines to it:
* To build any examples that use WiFi, edit `include/ssid_config.h` and change the two macro defines:
```c
#define WIFI_SSID "mywifissid"
#define WIFI_PASS "my secret password"
```
Remove the `#warning` and follow the git ignore instructions to keep your credentials from being pushed to Github.
* Build an example project (found in the 'examples' directory) and flash it to a serial port:
```