|
|
|
|
|
|
|
|
|
|
|
|
|
|
1. Download and install [Visual Studio Code](https://code.visualstudio.com/download) |
|
|
1. Download and install [Visual Studio Code](https://code.visualstudio.com/download) |
|
|
2. Install [PlatformIO IDE extension](https://platformio.org/install/ide?install=vscode) for Visual Studio Code |
|
|
2. Install [PlatformIO IDE extension](https://platformio.org/install/ide?install=vscode) for Visual Studio Code |
|
|
3. Create [wifi_credentials.h](include/wifi_credentials.h) from [templ_wifi_credentials.h](include/templ_wifi_credentials.h) in include/ |
|
|
|
|
|
|
|
|
3. Download sources from master branch, "zip" or "git clone" |
|
|
|
|
|
4. Create [wifi_credentials.h](include/wifi_credentials.h) from [templ_wifi_credentials.h](include/templ_wifi_credentials.h) in include/ |
|
|
|
|
|
|
|
|
```cpp |
|
|
```cpp |
|
|
#ifndef __WIFI_CREDENTIALS_H |
|
|
#ifndef __WIFI_CREDENTIALS_H |
|
|
|
|
|
|
|
|
#endif // __WIFI_CREDENTIALS_H |
|
|
#endif // __WIFI_CREDENTIALS_H |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
4. Create [platformio.ini](platformio.ini) from [templ_platformio_ini](templ_platformio_ini) |
|
|
|
|
|
|
|
|
5. Create [platformio.ini](platformio.ini) from [templ_platformio_ini](templ_platformio_ini) |
|
|
|
|
|
|
|
|
```bash |
|
|
```bash |
|
|
$ cp templ_platformio_ini platformio.ini |
|
|
$ cp templ_platformio_ini platformio.ini |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
5. __Uploading new firmware__ |
|
|
|
|
|
|
|
|
6. __Uploading new firmware__ |
|
|
```bash |
|
|
```bash |
|
|
# upload program via ota |
|
|
# upload program via ota |
|
|
$ pio run -t upload |
|
|
$ pio run -t upload |