Skip to content

Commit 0ff02ce

Browse files
authored
Merge pull request #156 from jaal2001/patch-3
Create default secrets.h
2 parents 0187bc3 + 0db75ea commit 0ff02ce

File tree

2 files changed

+16
-17
lines changed

2 files changed

+16
-17
lines changed

README.md

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -94,23 +94,8 @@ code .
9494
4. **Prepare the Project**
9595

9696
- Perform a `PlatformIO: Clean` (Recycle bin icon at the bottom right).
97-
- Add a `secrets.h` file to the `include` directory. Modify passwords and save the file. Go in the next section for WiFi instructions.
98-
99-
```cpp
100-
#pragma once
101-
102-
#define WIFI_HOSTNAME ""
103-
104-
#ifdef ESP8266
105-
#define WIFI_SSID ""
106-
#define WIFI_PASSWORD ""
107-
#endif
108-
109-
#define OTA_USERNAME ""
110-
#define OTA_PASSWORD ""
111-
```
112-
113-
- Set variables inside `include/constants.h`.
97+
- Edit the secrets.h in the include directory with your WiFi information. If you are using an ESP32, you may skip the section ESP8266 and setup WiFi with the WiFi Manager. See the "[Configuring WiFi with WiFi manager](https://github.com/jaal2001/ikea-led-obegraensad-pr/edit/patch-3/README.md#configuring-wifi-with-wifi-manager)" section for instructions.
98+
- Set variables inside `include/constants.h`.
11499

115100
5. **Build the Project**
116101

include/secrets.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// This is a defaults file, you need to add your details
2+
#pragma once
3+
4+
// This defines the name of your device
5+
#define WIFI_HOSTNAME ""
6+
7+
#ifdef ESP8266
8+
#define WIFI_SSID ""
9+
#define WIFI_PASSWORD ""
10+
#endif
11+
12+
// If you would like to perform OTA updates, you need to define the credentials here
13+
#define OTA_USERNAME ""
14+
#define OTA_PASSWORD ""

0 commit comments

Comments
 (0)