Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit 4361e40

Browse files
committed
testing revert
1 parent 8b24d4c commit 4361e40

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

examples/FirebaseDemo_ESP8266/FirebaseDemo_ESP8266.ino

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
#define WIFI_SSID "SSID"
2727
#define WIFI_PASSWORD "PASSWORD"
2828

29-
void ConnectWifi(const String& ssid, const String& password = "") {
29+
void setup() {
30+
Serial.begin(9600);
3031
if (password != "") {
3132
WiFi.begin(ssid.c_str(), password.c_str());
3233
} else {
@@ -41,10 +42,7 @@ void ConnectWifi(const String& ssid, const String& password = "") {
4142
Serial.println();
4243
Serial.print("connected: ");
4344
Serial.println(WiFi.localIP());
44-
}
4545

46-
void setup() {
47-
Serial.begin(9600);
4846
ConnectWifi(WIFI_SSID, WIFI_PASSWORD);
4947
Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH);
5048
}

examples/Firebase_ESP8266_LEDs/Firebase_ESP8266_Neopixel/Firebase_ESP8266_Neopixel.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ Firebase fbase = Firebase(FIREBASE_HOST, FIREBASE_AUTH);
3535

3636
void ConnectWifi(const String& ssid, const String& password = "") {
3737
if (password != "") {
38-
WiFi.begin(ssid.c_str(), password.c_str());
38+
WiFi.begin(ssid, password);
3939
} else {
40-
WiFi.begin(ssid.c_str());
40+
WiFi.begin(ssid);
4141
}
4242

4343
Serial.print("connecting");

0 commit comments

Comments
 (0)