We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cad10b commit a1f275fCopy full SHA for a1f275f
libraries/ESP8266HTTPClient/examples/ReuseConnectionV2/ReuseConnectionV2.ino
@@ -7,13 +7,15 @@
7
*/
8
9
10
-#include <Arduino.h>
11
-
12
#include <ESP8266WiFi.h>
13
#include <ESP8266WiFiMulti.h>
14
15
#include <ESP8266HTTPClient.h>
16
+#ifndef STASSID
+#define STASSID "your-ssid"
+#define STAPSK "your-password"
17
+#endif
18
+
19
ESP8266WiFiMulti WiFiMulti;
20
21
HTTPClient http;
@@ -29,7 +31,7 @@ void setup() {
29
31
Serial.println("Connecting to WiFi...");
30
32
33
WiFi.mode(WIFI_STA);
- WiFiMulti.addAP("SSID", "PASSWORD");
34
+ WiFiMulti.addAP(STASSID, STAPSK);
35
36
// wait for WiFi connection
37
while ((WiFiMulti.run() != WL_CONNECTED)) {
0 commit comments