|
4 | 4 | /* template file for preloading credentials instead of reading from the file system
|
5 | 5 | * only applicable for [env:demo-unit-preloaded]
|
6 | 6 | *
|
7 |
| - * to use this file, copy this template to "credentials.h" and fill in the applicable values. |
| 7 | + * to use this file, copy this template to "credentials.h" and uncomment/fill in the applicable values. |
8 | 8 | * the list below is non-exhaustive and additional options can be added as needed.
|
9 | 9 | * this will override anything in the file system on every startup.
|
10 | 10 | */
|
|
13 | 13 | void set_preferences(Preferences preferences);
|
14 | 14 |
|
15 | 15 | void set_preferences(Preferences preferences) {
|
16 |
| - // A non-exhaustive list of preferences for the ESP32 |
| 16 | + |
17 | 17 | preferences.begin("config");
|
18 |
| - preferences.putString("ssid", ""); |
19 |
| - preferences.putString("password", ""); |
20 |
| - preferences.putString("det_id", ""); |
21 |
| - preferences.putString("api_key", ""); |
22 |
| - preferences.putInt("query_delay", 600); |
| 18 | + |
| 19 | + // A non-exhaustive list of preferences for the ESP32 |
| 20 | + // preferences.putString("ssid", ""); |
| 21 | + // preferences.putString("password", ""); |
| 22 | + // preferences.putString("det_id", ""); |
| 23 | + // preferences.putString("api_key", ""); |
| 24 | + // preferences.putInt("query_delay", 600); |
23 | 25 | // preferences.putString("email", "");
|
24 | 26 | // preferences.putString("emailEndpoint", "");
|
25 | 27 | // preferences.putString("emailKey", "");
|
26 | 28 | // preferences.putString("emailHost", "");
|
| 29 | + |
27 | 30 | preferences.end();
|
28 | 31 | }
|
29 | 32 |
|
0 commit comments