Skip to content

Commit

Permalink
Set some function and option obsoleted and update examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed Sep 13, 2023
1 parent d391140 commit 5a53094
Show file tree
Hide file tree
Showing 154 changed files with 431 additions and 379 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,10 @@ void setup()
#endif

// Comment or pass false value when WiFi reconnection will control by your code or third party library
Firebase.reconnectWiFi(true);
Firebase.reconnectNetwork(true);

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

/* Initialize the library with the Firebase authen and config */
Expand Down
5 changes: 3 additions & 2 deletions examples/Authentications/ReAuthenticate/ReAuthenticate.ino
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,10 @@ void setup()
#endif

// Comment or pass false value when WiFi reconnection will control by your code or third party library
Firebase.reconnectWiFi(true);
Firebase.reconnectNetwork(true);

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

fbdo.setResponseSize(4096);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,10 @@ void setup()
config.token_status_callback = tokenStatusCallback; // see addons/TokenHelper.h

// Comment or pass false value when WiFi reconnection will control by your code or third party library
Firebase.reconnectWiFi(true);
Firebase.reconnectNetwork(true);

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

/** To set system time with the timestamp from RTC
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,10 @@ void setup()
#endif

// Comment or pass false value when WiFi reconnection will control by your code or third party library
Firebase.reconnectWiFi(true);
Firebase.reconnectNetwork(true);

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

/** To sign in as anonymous user, just sign up as anonymous user
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,10 @@ void setup()
#endif

// Comment or pass false value when WiFi reconnection will control by your code or third party library
Firebase.reconnectWiFi(true);
Firebase.reconnectNetwork(true);

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

fbdo.setResponseSize(4096);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,10 @@ void setup()
#endif

// Comment or pass false value when WiFi reconnection will control by your code or third party library
Firebase.reconnectWiFi(true);
Firebase.reconnectNetwork(true);

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

fbdo.setResponseSize(4096);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,10 @@ void setup()
#endif

// Comment or pass false value when WiFi reconnection will control by your code or third party library
Firebase.reconnectWiFi(true);
Firebase.reconnectNetwork(true);

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

fbdo.setResponseSize(4096);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,10 @@ void setup()
#endif

// Comment or pass false value when WiFi reconnection will control by your code or third party library
Firebase.reconnectWiFi(true);
Firebase.reconnectNetwork(true);

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

/* Assign the callback function for the long running token generation task */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,10 @@ void setup()
#endif

// Comment or pass false value when WiFi reconnection will control by your code or third party library
Firebase.reconnectWiFi(true);
Firebase.reconnectNetwork(true);

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

/* Assign the callback function for the long running token generation task */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,10 @@ void setup()
#endif

// Comment or pass false value when WiFi reconnection will control by your code or third party library
Firebase.reconnectWiFi(true);
Firebase.reconnectNetwork(true);

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

/* Assign the callback function for the long running token generation task */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,10 @@ void setup()
#endif

// Comment or pass false value when WiFi reconnection will control by your code or third party library
Firebase.reconnectWiFi(true);
Firebase.reconnectNetwork(true);

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

/* Assign the callback function for the long running token generation task */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,10 @@ void setup()
#endif

// Comment or pass false value when WiFi reconnection will control by your code or third party library
Firebase.reconnectWiFi(true);
Firebase.reconnectNetwork(true);

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

/* Assign the callback function for the long running token generation task */
Expand Down
5 changes: 3 additions & 2 deletions examples/Authentications/TestMode/TestMode.ino
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,10 @@ void setup()
#endif

// Comment or pass false value when WiFi reconnection will control by your code or third party library
Firebase.reconnectWiFi(true);
Firebase.reconnectNetwork(true);

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

/* Initialize the library with the Firebase authen and config */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ void setup()
config.wifi.addAP(WIFI_SSID, WIFI_PASSWORD);
#endif

Firebase.reconnectWiFi(true);
Firebase.reconnectNetwork(true);

Serial.printf("Send Email reset password link... %s\n", Firebase.sendResetPassword(&config, USER_EMAIL) ? "ok" : config.signer.resetPswError.message.c_str());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,10 @@ void setup()
auth.user.password = USER_PASSWORD;

// Comment or pass false value when WiFi reconnection will control by your code or third party library
Firebase.reconnectWiFi(true);
Firebase.reconnectNetwork(true);

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

/* Assign the callback function for the long running token generation task */
Expand Down
5 changes: 3 additions & 2 deletions examples/Authentications/UserManagement/Signup/Signup.ino
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,10 @@ void setup()
#endif

// Comment or pass false value when WiFi reconnection will control by your code or third party library
Firebase.reconnectWiFi(true);
Firebase.reconnectNetwork(true);

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

Serial.print("Sign up new user... ");
Expand Down
5 changes: 3 additions & 2 deletions examples/CloudFunctions/CallFunction/CallFunction.ino
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,10 @@ void setup()
config.token_status_callback = tokenStatusCallback; // see addons/TokenHelper.h

// Comment or pass false value when WiFi reconnection will control by your code or third party library
Firebase.reconnectWiFi(true);
Firebase.reconnectNetwork(true);

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

Firebase.begin(&config, &auth);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,10 @@ void setup()
config.token_status_callback = tokenStatusCallback; // see addons/TokenHelper.h

// Comment or pass false value when WiFi reconnection will control by your code or third party library
Firebase.reconnectWiFi(true);
Firebase.reconnectNetwork(true);

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

Firebase.begin(&config, &auth);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,10 @@ void setup()
config.token_status_callback = tokenStatusCallback; // see addons/TokenHelper.h

// Comment or pass false value when WiFi reconnection will control by your code or third party library
Firebase.reconnectWiFi(true);
Firebase.reconnectNetwork(true);

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

Firebase.begin(&config, &auth);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,10 @@ void setup()
config.token_status_callback = tokenStatusCallback; // see addons/TokenHelper.h

// Comment or pass false value when WiFi reconnection will control by your code or third party library
Firebase.reconnectWiFi(true);
Firebase.reconnectNetwork(true);

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

Firebase.begin(&config, &auth);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,10 @@ void setup()
config.token_status_callback = tokenStatusCallback; // see addons/TokenHelper.h

// Comment or pass false value when WiFi reconnection will control by your code or third party library
Firebase.reconnectWiFi(true);
Firebase.reconnectNetwork(true);

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

Firebase.begin(&config, &auth);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,10 @@ void setup()
config.token_status_callback = tokenStatusCallback; // see addons/TokenHelper.h

// Comment or pass false value when WiFi reconnection will control by your code or third party library
Firebase.reconnectWiFi(true);
Firebase.reconnectNetwork(true);

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

Firebase.begin(&config, &auth);
Expand Down
5 changes: 3 additions & 2 deletions examples/CloudFunctions/DeleteFunction/DeleteFunction.ino
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,10 @@ void setup()
config.token_status_callback = tokenStatusCallback; // see addons/TokenHelper.h

// Comment or pass false value when WiFi reconnection will control by your code or third party library
Firebase.reconnectWiFi(true);
Firebase.reconnectNetwork(true);

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

Firebase.begin(&config, &auth);
Expand Down
5 changes: 3 additions & 2 deletions examples/CloudFunctions/DownloadFunction/DownloadFunction.ino
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,10 @@ void setup()
config.token_status_callback = tokenStatusCallback; // see addons/TokenHelper.h

// Comment or pass false value when WiFi reconnection will control by your code or third party library
Firebase.reconnectWiFi(true);
Firebase.reconnectNetwork(true);

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

Firebase.begin(&config, &auth);
Expand Down
5 changes: 3 additions & 2 deletions examples/CloudFunctions/IAMPolicy/GetPolicy/GetPolicy.ino
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,10 @@ void setup()
config.token_status_callback = tokenStatusCallback; // see addons/TokenHelper.h

// Comment or pass false value when WiFi reconnection will control by your code or third party library
Firebase.reconnectWiFi(true);
Firebase.reconnectNetwork(true);

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

Firebase.begin(&config, &auth);
Expand Down
5 changes: 3 additions & 2 deletions examples/CloudFunctions/IAMPolicy/SetPolicy/SetPolicy.ino
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,10 @@ void setup()
config.token_status_callback = tokenStatusCallback; // see addons/TokenHelper.h

// Comment or pass false value when WiFi reconnection will control by your code or third party library
Firebase.reconnectWiFi(true);
Firebase.reconnectNetwork(true);

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

Firebase.begin(&config, &auth);
Expand Down
5 changes: 3 additions & 2 deletions examples/CloudFunctions/ListFunctions/ListFunctions.ino
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,10 @@ void setup()
config.token_status_callback = tokenStatusCallback; // see addons/TokenHelper.h

// Comment or pass false value when WiFi reconnection will control by your code or third party library
Firebase.reconnectWiFi(true);
Firebase.reconnectNetwork(true);

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

Firebase.begin(&config, &auth);
Expand Down
5 changes: 3 additions & 2 deletions examples/CloudFunctions/PatchFunction/PatchFunction.ino
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,10 @@ void setup()
config.token_status_callback = tokenStatusCallback; // see addons/TokenHelper.h

// Comment or pass false value when WiFi reconnection will control by your code or third party library
Firebase.reconnectWiFi(true);
Firebase.reconnectNetwork(true);

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

Firebase.begin(&config, &auth);
Expand Down
Loading

0 comments on commit 5a53094

Please sign in to comment.