WiFi Examples: Load SSID & password from a common local.h file instead

of coding into program
This commit is contained in:
Angus Gratton 2015-06-16 16:58:27 +10:00
parent 1b0124cf05
commit f0db6f2b98
5 changed files with 22 additions and 10 deletions

View file

@ -21,6 +21,12 @@ 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:
```c
#define WIFI_SSID "mywifissid"
#define WIFI_PASS "my secret password"
```
* Build an example project (found in the 'examples' directory) and flash it to a serial port:
```