Skip to content

Commit 57af102

Browse files
committed
Set some function and option obsoleted and update examples.
1 parent 574bda4 commit 57af102

87 files changed

Lines changed: 264 additions & 188 deletions

File tree

Some content is hidden

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

examples/Authentications/LegacyTokenAuthen/LegacyTokenAuthen.ino

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

71-
Firebase.reconnectWiFi(true);
71+
Firebase.reconnectNetwork(true);
7272

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

7677
/* Initialize the library with the Firebase authen and config */

examples/Authentications/ReAuthenticate/ReAuthenticate.ino

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

106-
Firebase.reconnectWiFi(true);
106+
Firebase.reconnectNetwork(true);
107107

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

111112
fbdo.setResponseSize(4096);

examples/Authentications/SignInAsAdmin/AccessTokenFile/AccessTokenFile.ino

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

110-
Firebase.reconnectWiFi(true);
110+
Firebase.reconnectNetwork(true);
111111

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

115116
/** To set system time with the timestamp from RTC

examples/Authentications/SignInAsGuest/AnonymousSignin/AnonymousSignin.ino

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

90-
Firebase.reconnectWiFi(true);
90+
Firebase.reconnectNetwork(true);
9191

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

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

examples/Authentications/SignInAsUser/CustomToken/CustomToken.ino

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

184-
Firebase.reconnectWiFi(true);
184+
Firebase.reconnectNetwork(true);
185185

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

189190
fbdo.setResponseSize(4096);

examples/Authentications/SignInAsUser/CustomTokenFile/CustomTokenFile.ino

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

133-
Firebase.reconnectWiFi(true);
133+
Firebase.reconnectNetwork(true);
134134

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

138139
fbdo.setResponseSize(4096);

examples/Authentications/SignInAsUser/EmailPassword/EmailPassword.ino

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

110-
Firebase.reconnectWiFi(true);
110+
Firebase.reconnectNetwork(true);
111111

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

115116
fbdo.setResponseSize(4096);

examples/Authentications/SignInWithAccessToken/SignInWithAccessToken.ino

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

66-
Firebase.reconnectWiFi(true);
66+
Firebase.reconnectNetwork(true);
6767

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

7172
/* 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
@@ -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/SignInWithIDToken/SignInWithIDToken.ino

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

80-
Firebase.reconnectWiFi(true);
80+
Firebase.reconnectNetwork(true);
8181

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

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

0 commit comments

Comments
 (0)