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

Commit d1ae1cc

Browse files
committed
Revert "Fixed String& -> char*"
This reverts commit e721c80. Eh I think we still want the String&, going to use c_str()
1 parent e721c80 commit d1ae1cc

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

examples/FirebaseDemo_ESP8266/FirebaseDemo_ESP8266.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#define WIFI_SSID "SSID"
2727
#define WIFI_PASSWORD "PASSWORD"
2828

29-
void ConnectWifi(const char* ssid, const char* password = "") {
29+
void ConnectWifi(const String& ssid, const String& password = "") {
3030
if (password != "") {
3131
WiFi.begin(ssid, password);
3232
} else {

examples/FirebaseRoom_ESP8266/FirebaseRoom_ESP8266.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#define WIFI_SSID "SSID"
2727
#define WIFI_PASSWORD "PASSWORD"
2828

29-
void ConnectWifi(const char* ssid, const char* password = "") {
29+
void ConnectWifi(const String& ssid, const String& password = "") {
3030
if (password != "") {
3131
WiFi.begin(ssid, password);
3232
} else {

examples/FirebaseSerialHost_ESP8266/FirebaseSerialHost_ESP8266.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ firebase::modem::SerialTransceiver transceiver;
4343
#define WIFI_SSID "SSID"
4444
#define WIFI_PASSWORD "PASSWORD"
4545

46-
void ConnectWifi(const char* ssid, const char* password = "") {
46+
void ConnectWifi(const String& ssid, const String& password = "") {
4747
if (password != "") {
4848
WiFi.begin(ssid, password);
4949
} else {

examples/FirebaseStream_ESP8266/FirebaseStream_ESP8266.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ FirebaseStream stream;
3535

3636
Firebase fbase = Firebase(FIREBASE_HOST, FIREBASE_AUTH);
3737

38-
void ConnectWifi(const char* ssid, const char* password = "") {
38+
void ConnectWifi(const String& ssid, const String& password = "") {
3939
if (password != "") {
4040
WiFi.begin(ssid, password);
4141
} else {

examples/Firebase_ESP8266_LEDs/Firebase_ESP8266_Neopixel/Firebase_ESP8266_Neopixel.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Adafruit_NeoPixel strip = Adafruit_NeoPixel(32, PIN, NEO_GRB + NEO_KHZ800);
3333

3434
Firebase fbase = Firebase(FIREBASE_HOST, FIREBASE_AUTH);
3535

36-
void ConnectWifi(const char* ssid, const char* password = "") {
36+
void ConnectWifi(const String& ssid, const String& password = "") {
3737
if (password != "") {
3838
WiFi.begin(ssid, password);
3939
} else {

test/travis/firebase_arduino_init.cc.snip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#define WIFI_SSID "SSID"
55
#define WIFI_PASSWORD "PASSWORD"
66

7-
void ConnectWifi(const char* ssid, const char* password = "") {
7+
void ConnectWifi(const String& ssid, const String& password = "") {
88
if (password != "") {
99
WiFi.begin(ssid, password);
1010
} else {

test/travis/firebase_init.cc.snip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
Firebase fbase = Firebase(FIREBASE_HOST, FIREBASE_AUTH);
88

9-
void ConnectWifi(const char* ssid, const char* password = "") {
9+
void ConnectWifi(const String& ssid, const String& password = "") {
1010
if (password != "") {
1111
WiFi.begin(ssid, password);
1212
} else {

test/travis/no_firebase_init.cc.snip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define WIFI_SSID "SSID"
33
#define WIFI_PASSWORD "PASSWORD"
44

5-
void ConnectWifi(const char* ssid, const char* password = "") {
5+
void ConnectWifi(const String& ssid, const String& password = "") {
66
if (password != "") {
77
WiFi.begin(ssid, password);
88
} else {

0 commit comments

Comments
 (0)