Skip to content

Commit 5a196ac

Browse files
committed
Set some function and option obsoleted and update examples.
1 parent 38389c5 commit 5a196ac

File tree

87 files changed

+266
-195
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+266
-195
lines changed

examples/Authentications/LegacyTokenAuthen/LegacyTokenAuthen.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,10 @@ void setup()
8383
config.database_url = DATABASE_URL;
8484
config.signer.tokens.legacy_token = DATABASE_SECRET;
8585

86-
Firebase.reconnectWiFi(true);
86+
Firebase.reconnectNetwork(true);
8787

88-
// required for large file data, increase Rx size as needed.
88+
// Since v4.4.x, BearSSL engine was used, the SSL buffer need to be set.
89+
// Large data transmission may require larger RX buffer, otherwise the data read time out can be occurred.
8990
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);
9091

9192
// The WiFi credentials are required for Pico W

examples/Authentications/ReAuthenticate/ReAuthenticate.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,10 @@ void setup()
116116
/* Assign the RTDB URL */
117117
config.database_url = DATABASE_URL;
118118

119-
Firebase.reconnectWiFi(true);
119+
Firebase.reconnectNetwork(true);
120120

121-
// required for large file data, increase Rx size as needed.
121+
// Since v4.4.x, BearSSL engine was used, the SSL buffer need to be set.
122+
// Large data transmission may require larger RX buffer, otherwise the data read time out can be occurred.
122123
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);
123124

124125
fbdo.setResponseSize(4096);

examples/Authentications/SignInAsAdmin/AccessTokenFile/AccessTokenFile.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,10 @@ void setup()
118118
*/
119119
// config.signer.tokens.scope = "Google Scope 1 Url, Google Scope 2 Url,..";
120120

121-
Firebase.reconnectWiFi(true);
121+
Firebase.reconnectNetwork(true);
122122

123-
// required for large file data, increase Rx size as needed.
123+
// Since v4.4.x, BearSSL engine was used, the SSL buffer need to be set.
124+
// Large data transmission may require larger RX buffer, otherwise the data read time out can be occurred.
124125
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);
125126

126127
/* Assign the callback function for the long running token generation task */

examples/Authentications/SignInAsGuest/AnonymousSignin/AnonymousSignin.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ void setup()
102102
/* Assign the RTDB URL */
103103
config.database_url = DATABASE_URL;
104104

105-
Firebase.reconnectWiFi(true);
105+
Firebase.reconnectNetwork(true);
106106

107107
// required for large file data, increase Rx size as needed.
108108
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);

examples/Authentications/SignInAsUser/CustomToken/CustomToken.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,10 @@ void setup()
196196
/* Assign the RTDB URL */
197197
config.database_url = DATABASE_URL;
198198

199-
Firebase.reconnectWiFi(true);
199+
Firebase.reconnectNetwork(true);
200200

201-
// required for large file data, increase Rx size as needed.
201+
// Since v4.4.x, BearSSL engine was used, the SSL buffer need to be set.
202+
// Large data transmission may require larger RX buffer, otherwise the data read time out can be occurred.
202203
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);
203204

204205
fbdo.setResponseSize(4096);

examples/Authentications/SignInAsUser/CustomTokenFile/CustomTokenFile.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,10 @@ void setup()
145145
claims.add("admin", true);
146146
auth.token.claims = claims.raw();
147147

148-
Firebase.reconnectWiFi(true);
148+
Firebase.reconnectNetwork(true);
149149

150-
// required for large file data, increase Rx size as needed.
150+
// Since v4.4.x, BearSSL engine was used, the SSL buffer need to be set.
151+
// Large data transmission may require larger RX buffer, otherwise the data read time out can be occurred.
151152
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);
152153

153154
fbdo.setResponseSize(4096);

examples/Authentications/SignInAsUser/EmailPassword/EmailPassword.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,10 @@ void setup()
122122
/* Assign the RTDB URL */
123123
config.database_url = DATABASE_URL;
124124

125-
Firebase.reconnectWiFi(true);
125+
Firebase.reconnectNetwork(true);
126126

127-
// required for large file data, increase Rx size as needed.
127+
// Since v4.4.x, BearSSL engine was used, the SSL buffer need to be set.
128+
// Large data transmission may require larger RX buffer, otherwise the data read time out can be occurred.
128129
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);
129130

130131
fbdo.setResponseSize(4096);

examples/Authentications/SignInWithAccessToken/SignInWithAccessToken.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,10 @@ void setup()
7878
/* Assign the RTDB URL */
7979
config.database_url = DATABASE_URL;
8080

81-
Firebase.reconnectWiFi(true);
81+
Firebase.reconnectNetwork(true);
8282

83-
// required for large file data, increase Rx size as needed.
83+
// Since v4.4.x, BearSSL engine was used, the SSL buffer need to be set.
84+
// Large data transmission may require larger RX buffer, otherwise the data read time out can be occurred.
8485
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);
8586

8687
/* Assign the callback function for the long running token generation task */

examples/Authentications/SignInWithCustomToken/SignInWithCustomToken.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,10 @@ void setup()
9393
/* Assign the RTDB URL */
9494
config.database_url = DATABASE_URL;
9595

96-
Firebase.reconnectWiFi(true);
96+
Firebase.reconnectNetwork(true);
9797

98-
// required for large file data, increase Rx size as needed.
98+
// Since v4.4.x, BearSSL engine was used, the SSL buffer need to be set.
99+
// Large data transmission may require larger RX buffer, otherwise the data read time out can be occurred.
99100
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);
100101

101102
/* Assign the callback function for the long running token generation task */

examples/Authentications/SignInWithIDToken/SignInWithIDToken.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,10 @@ void setup()
9292
/* Assign the RTDB URL */
9393
config.database_url = DATABASE_URL;
9494

95-
Firebase.reconnectWiFi(true);
95+
Firebase.reconnectNetwork(true);
9696

97-
// required for large file data, increase Rx size as needed.
97+
// Since v4.4.x, BearSSL engine was used, the SSL buffer need to be set.
98+
// Large data transmission may require larger RX buffer, otherwise the data read time out can be occurred.
9899
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);
99100

100101
/** To sign in as anonymous user, just sign up as anonymous user

examples/Authentications/SignInWithRefreshAccessToken/SignInWithRefreshAccessToken.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,10 @@ void setup()
7878
/* Assign the RTDB URL */
7979
config.database_url = DATABASE_URL;
8080

81-
Firebase.reconnectWiFi(true);
81+
Firebase.reconnectNetwork(true);
8282

83-
// required for large file data, increase Rx size as needed.
83+
// Since v4.4.x, BearSSL engine was used, the SSL buffer need to be set.
84+
// Large data transmission may require larger RX buffer, otherwise the data read time out can be occurred.
8485
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);
8586

8687
/* Assign the callback function for the long running token generation task */

examples/Authentications/SignInWithRefreshIDToken/SignInWithRefreshIDToken.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,10 @@ void setup()
9595
/* Assign the RTDB URL */
9696
config.database_url = DATABASE_URL;
9797

98-
Firebase.reconnectWiFi(true);
98+
Firebase.reconnectNetwork(true);
9999

100-
// required for large file data, increase Rx size as needed.
100+
// Since v4.4.x, BearSSL engine was used, the SSL buffer need to be set.
101+
// Large data transmission may require larger RX buffer, otherwise the data read time out can be occurred.
101102
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);
102103

103104
/* Assign the callback function for the long running token generation task */

examples/Authentications/TestMode/TestMode.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,10 @@ void setup()
9393
9494
*/
9595

96-
Firebase.reconnectWiFi(true);
96+
Firebase.reconnectNetwork(true);
9797

98-
// required for large file data, increase Rx size as needed.
98+
// Since v4.4.x, BearSSL engine was used, the SSL buffer need to be set.
99+
// Large data transmission may require larger RX buffer, otherwise the data read time out can be occurred.
99100
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);
100101

101102
// The WiFi credentials are required for Pico W

examples/Authentications/UserManagement/ResetPassword/ResetPassword.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ void setup()
8383
/* Assign the RTDB URL */
8484
config.database_url = DATABASE_URL;
8585

86-
Firebase.reconnectWiFi(true);
86+
Firebase.reconnectNetwork(true);
8787

8888
// The WiFi credentials are required for Pico W
8989
// due to it does not have reconnect feature.

examples/Authentications/UserManagement/SendVerification/SendVerification.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,10 @@ void setup()
106106
/* Assign the RTDB URL */
107107
config.database_url = DATABASE_URL;
108108

109-
Firebase.reconnectWiFi(true);
109+
Firebase.reconnectNetwork(true);
110110

111-
// required for large file data, increase Rx size as needed.
111+
// Since v4.4.x, BearSSL engine was used, the SSL buffer need to be set.
112+
// Large data transmission may require larger RX buffer, otherwise the data read time out can be occurred.
112113
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);
113114

114115
/* Assign the user sign in credentials */

examples/Authentications/UserManagement/Signup/Signup.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,10 @@ void setup()
9999
/* Assign the RTDB URL */
100100
config.database_url = DATABASE_URL;
101101

102-
Firebase.reconnectWiFi(true);
102+
Firebase.reconnectNetwork(true);
103103

104-
// required for large file data, increase Rx size as needed.
104+
// Since v4.4.x, BearSSL engine was used, the SSL buffer need to be set.
105+
// Large data transmission may require larger RX buffer, otherwise the data read time out can be occurred.
105106
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);
106107

107108
Serial.print("Sign up new user... ");

examples/BackupRestore/Flash/Flash.ino

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ void setup()
9090
/* Assign the callback function for the long running token generation task */
9191
config.token_status_callback = tokenStatusCallback; // see addons/TokenHelper.h
9292

93-
Firebase.reconnectWiFi(true);
93+
Firebase.reconnectNetwork(true);
9494

95-
// required for large file data, increase Rx size as needed.
95+
// Since v4.4.x, BearSSL engine was used, the SSL buffer need to be set.
96+
// Large data transmission may require larger RX buffer, otherwise the data read time out can be occurred.
9697
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);
9798

98-
9999
// The WiFi credentials are required for Pico W
100100
// due to it does not have reconnect feature.
101101
#if defined(ARDUINO_RASPBERRY_PI_PICO_W)
@@ -110,8 +110,7 @@ void setup()
110110
// To connect without auth in Test Mode, see Authentications/TestMode/TestMode.ino
111111

112112
Firebase.begin(&config, &auth);
113-
114-
}
113+
}
115114

116115
// The Firebase download callback function
117116
void rtdbDownloadCallback(RTDB_DownloadStatusInfo info)

examples/BackupRestore/SD/SD.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,12 @@ void setup()
9595
/* Assign the callback function for the long running token generation task */
9696
config.token_status_callback = tokenStatusCallback; // see addons/TokenHelper.h
9797

98-
Firebase.reconnectWiFi(true);
98+
Firebase.reconnectNetwork(true);
9999

100-
// required for large file data, increase Rx size as needed.
100+
// Since v4.4.x, BearSSL engine was used, the SSL buffer need to be set.
101+
// Large data transmission may require larger RX buffer, otherwise the data read time out can be occurred.
101102
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);
102103

103-
104104
// The WiFi credentials are required for Pico W
105105
// due to it does not have reconnect feature.
106106
#if defined(ARDUINO_RASPBERRY_PI_PICO_W)

examples/Basic/Basic.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ void setup()
9393
/* Assign the callback function for the long running token generation task */
9494
config.token_status_callback = tokenStatusCallback; // see addons/TokenHelper.h
9595

96-
Firebase.reconnectWiFi(true);
96+
Firebase.reconnectNetwork(true);
9797

98-
// required for large file data, increase Rx size as needed.
98+
// Since v4.4.x, BearSSL engine was used, the SSL buffer need to be set.
99+
// Large data transmission may require larger RX buffer, otherwise the data read time out can be occurred.
99100
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);
100101

101-
102102
// The WiFi credentials are required for Pico W
103103
// due to it does not have reconnect feature.
104104
#if defined(ARDUINO_RASPBERRY_PI_PICO_W)
@@ -127,8 +127,8 @@ void setup()
127127

128128
/** Timeout options.
129129
130-
//WiFi reconnect timeout (interval) in ms (10 sec - 5 min) when WiFi disconnected.
131-
config.timeout.wifiReconnect = 10 * 1000;
130+
//Network reconnect timeout (interval) in ms (10 sec - 5 min) when network or WiFi disconnected.
131+
config.timeout.networkReconnect = 10 * 1000;
132132
133133
//Socket connection and SSL handshake timeout in ms (1 sec - 1 min).
134134
config.timeout.socketConnection = 10 * 1000;

examples/BasicCert/BasicCert.ino

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,10 @@ void setup()
138138
// Or custom set the root certificate for each FirebaseData object
139139
fbdo.setCert(rootCACert);
140140

141-
Firebase.reconnectWiFi(true);
141+
Firebase.reconnectNetwork(true);
142142

143-
// required for large file data, increase Rx size as needed.
143+
// Since v4.4.x, BearSSL engine was used, the SSL buffer need to be set.
144+
// Large data transmission may require larger RX buffer, otherwise the data read time out can be occurred.
144145
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);
145146

146147
// The WiFi credentials are required for Pico W
@@ -176,8 +177,8 @@ void setup()
176177

177178
/** Timeout options.
178179
179-
//WiFi reconnect timeout (interval) in ms (10 sec - 5 min) when WiFi disconnected.
180-
config.timeout.wifiReconnect = 10 * 1000;
180+
//Network reconnect timeout (interval) in ms (10 sec - 5 min) when network or WiFi disconnected.
181+
config.timeout.networkReconnect = 10 * 1000;
181182
182183
//Socket connection and SSL handshake timeout in ms (1 sec - 1 min).
183184
config.timeout.socketConnection = 10 * 1000;

examples/BasicEthernet/BasicEthernet.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,10 @@ void setupFirebase()
101101
/* Assign the callback function for the long running token generation task */
102102
config.token_status_callback = tokenStatusCallback; // see addons/TokenHelper.h
103103

104-
Firebase.reconnectWiFi(true);
104+
Firebase.reconnectNetwork(true);
105105

106-
// required for large file data, increase Rx size as needed.
106+
// Since v4.4.x, BearSSL engine was used, the SSL buffer need to be set.
107+
// Large data transmission may require larger RX buffer, otherwise the data read time out can be occurred.
107108
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);
108109

109110
/* Assign the pointer to Ethernet module lwip interface */

examples/Blob/Blob.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,10 @@ void setup()
101101
config.wifi.addAP(WIFI_SSID, WIFI_PASSWORD);
102102
#endif
103103

104-
Firebase.reconnectWiFi(true);
104+
Firebase.reconnectNetwork(true);
105105

106-
// required for large file data, increase Rx size as needed.
106+
// Since v4.4.x, BearSSL engine was used, the SSL buffer need to be set.
107+
// Large data transmission may require larger RX buffer, otherwise the data read time out can be occurred.
107108
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);
108109

109110
// Or use legacy authenticate method

examples/Blynk/Blynk.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,10 @@ void setup()
115115
/* Assign the callback function for the long running token generation task */
116116
config.token_status_callback = tokenStatusCallback; // see addons/TokenHelper.h
117117

118-
Firebase.reconnectWiFi(true);
118+
Firebase.reconnectNetwork(true);
119119

120-
// required for large file data, increase Rx size as needed.
120+
// Since v4.4.x, BearSSL engine was used, the SSL buffer need to be set.
121+
// Large data transmission may require larger RX buffer, otherwise the data read time out can be occurred.
121122
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);
122123

123124
// The WiFi credentials are required for Pico W

examples/DataChangesListener/Callback/Callback.ino

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,10 @@ void setup()
125125
/* Assign the callback function for the long running token generation task */
126126
config.token_status_callback = tokenStatusCallback; // see addons/TokenHelper.h
127127

128-
Firebase.reconnectWiFi(true);
128+
Firebase.reconnectNetwork(true);
129129

130-
// required for large file data, increase Rx size as needed.
130+
// Since v4.4.x, BearSSL engine was used, the SSL buffer need to be set.
131+
// Large data transmission may require larger RX buffer, otherwise the data read time out can be occurred.
131132
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);
132133

133134
// The WiFi credentials are required for Pico W
@@ -158,8 +159,8 @@ void setup()
158159

159160
/** Timeout options, below is default config.
160161
161-
//WiFi reconnect timeout (interval) in ms (10 sec - 5 min) when WiFi disconnected.
162-
config.timeout.wifiReconnect = 10 * 1000;
162+
//Network reconnect timeout (interval) in ms (10 sec - 5 min) when network or WiFi disconnected.
163+
config.timeout.networkReconnect = 10 * 1000;
163164
164165
//Socket begin connection timeout (ESP32) or data transfer timeout (ESP8266) in ms (1 sec - 1 min).
165166
config.timeout.socketConnection = 30 * 1000;

examples/DataChangesListener/MultiPath/MultiPath.ino

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ void setup()
120120

121121
Serial.printf("Firebase Client v%s\n\n", FIREBASE_CLIENT_VERSION);
122122

123+
Serial.println("The MultipathStream is obsoleted, please use normal stream instead.");
124+
Serial.println("In case of ESP8266, external Static RAM is recommend for multiple streaming.");
125+
123126
/* Assign the api key (required) */
124127
config.api_key = API_KEY;
125128

@@ -133,9 +136,10 @@ void setup()
133136
/* Assign the callback function for the long running token generation task */
134137
config.token_status_callback = tokenStatusCallback; // see addons/TokenHelper.h
135138

136-
Firebase.reconnectWiFi(true);
139+
Firebase.reconnectNetwork(true);
137140

138-
// required for large file data, increase Rx size as needed.
141+
// Since v4.4.x, BearSSL engine was used, the SSL buffer need to be set.
142+
// Large data transmission may require larger RX buffer, otherwise the data read time out can be occurred.
139143
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);
140144

141145
// The WiFi credentials are required for Pico W
@@ -176,8 +180,8 @@ void setup()
176180

177181
/** Timeout options, below is default config.
178182
179-
//WiFi reconnect timeout (interval) in ms (10 sec - 5 min) when WiFi disconnected.
180-
config.timeout.wifiReconnect = 10 * 1000;
183+
//Network reconnect timeout (interval) in ms (10 sec - 5 min) when network or WiFi disconnected.
184+
config.timeout.networkReconnect = 10 * 1000;
181185
182186
//Socket begin connection timeout (ESP32) or data transfer timeout (ESP8266) in ms (1 sec - 1 min).
183187
config.timeout.socketConnection = 30 * 1000;
@@ -250,7 +254,6 @@ void loop()
250254
// stream.pauseFirebase(true);
251255
// stream.clear(); // close session and release memory
252256

253-
254257
// To resume stream with callback
255258
// stream.pauseFirebase(false);
256259
// Firebase.setMultiPathStreamCallback(stream, streamCallback, streamTimeoutCallback);

0 commit comments

Comments
 (0)