Skip to content

Commit 93b7325

Browse files
authored
Update secrets.h to network and credentials (esp8266#8325)
WiFi credentials: standard macro used in examples
1 parent 3f4bcbe commit 93b7325

File tree

1 file changed

+7
-2
lines changed
  • libraries/ESP8266WebServer/examples/WebServer

1 file changed

+7
-2
lines changed

libraries/ESP8266WebServer/examples/WebServer/secrets.h

+7-2
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,10 @@
99
// ssid and passPhrase can be used when compiling for a specific environment as a 2. option.
1010

1111
// add you wifi network name and PassPhrase or use WiFi Manager
12-
const char *ssid = "KHMH";
13-
const char *passPhrase = "hk-2012FD2926";
12+
#ifndef STASSID
13+
#define STASSID "ssid"
14+
#define STAPSK "psk"
15+
#endif
16+
17+
const char *ssid = STASSID;
18+
const char *passPhrase = STAPSK;

0 commit comments

Comments
 (0)