diff --git a/examples/Authentications/LegacyTokenAuthen/LegacyTokenAuthen.ino b/examples/Authentications/LegacyTokenAuthen/LegacyTokenAuthen.ino index 11f96572f..1304e2c0c 100644 --- a/examples/Authentications/LegacyTokenAuthen/LegacyTokenAuthen.ino +++ b/examples/Authentications/LegacyTokenAuthen/LegacyTokenAuthen.ino @@ -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 */ diff --git a/examples/Authentications/ReAuthenticate/ReAuthenticate.ino b/examples/Authentications/ReAuthenticate/ReAuthenticate.ino index d7ab3a88d..43eddc644 100644 --- a/examples/Authentications/ReAuthenticate/ReAuthenticate.ino +++ b/examples/Authentications/ReAuthenticate/ReAuthenticate.ino @@ -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); diff --git a/examples/Authentications/SignInAsAdmin/AccessTokenFile/AccessTokenFile.ino b/examples/Authentications/SignInAsAdmin/AccessTokenFile/AccessTokenFile.ino index 89d391b17..c0d2c6aab 100644 --- a/examples/Authentications/SignInAsAdmin/AccessTokenFile/AccessTokenFile.ino +++ b/examples/Authentications/SignInAsAdmin/AccessTokenFile/AccessTokenFile.ino @@ -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 diff --git a/examples/Authentications/SignInAsGuest/AnonymousSignin/AnonymousSignin.ino b/examples/Authentications/SignInAsGuest/AnonymousSignin/AnonymousSignin.ino index 4f89ff5ec..e9b61ea39 100644 --- a/examples/Authentications/SignInAsGuest/AnonymousSignin/AnonymousSignin.ino +++ b/examples/Authentications/SignInAsGuest/AnonymousSignin/AnonymousSignin.ino @@ -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 diff --git a/examples/Authentications/SignInAsUser/CustomToken/CustomToken.ino b/examples/Authentications/SignInAsUser/CustomToken/CustomToken.ino index 36e6192ce..97570b66e 100644 --- a/examples/Authentications/SignInAsUser/CustomToken/CustomToken.ino +++ b/examples/Authentications/SignInAsUser/CustomToken/CustomToken.ino @@ -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); diff --git a/examples/Authentications/SignInAsUser/CustomTokenFile/CustomTokenFile.ino b/examples/Authentications/SignInAsUser/CustomTokenFile/CustomTokenFile.ino index cc22e27c8..0b563ade5 100644 --- a/examples/Authentications/SignInAsUser/CustomTokenFile/CustomTokenFile.ino +++ b/examples/Authentications/SignInAsUser/CustomTokenFile/CustomTokenFile.ino @@ -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); diff --git a/examples/Authentications/SignInAsUser/EmailPassword/EmailPassword.ino b/examples/Authentications/SignInAsUser/EmailPassword/EmailPassword.ino index 5c971622e..1a164a6e5 100644 --- a/examples/Authentications/SignInAsUser/EmailPassword/EmailPassword.ino +++ b/examples/Authentications/SignInAsUser/EmailPassword/EmailPassword.ino @@ -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); diff --git a/examples/Authentications/SignInWithAccessToken/SignInWithAccessToken.ino b/examples/Authentications/SignInWithAccessToken/SignInWithAccessToken.ino index e8d63bf02..0da291138 100644 --- a/examples/Authentications/SignInWithAccessToken/SignInWithAccessToken.ino +++ b/examples/Authentications/SignInWithAccessToken/SignInWithAccessToken.ino @@ -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 */ diff --git a/examples/Authentications/SignInWithCustomToken/SignInWithCustomToken.ino b/examples/Authentications/SignInWithCustomToken/SignInWithCustomToken.ino index 3432548ce..505e2de3d 100644 --- a/examples/Authentications/SignInWithCustomToken/SignInWithCustomToken.ino +++ b/examples/Authentications/SignInWithCustomToken/SignInWithCustomToken.ino @@ -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 */ diff --git a/examples/Authentications/SignInWithIDToken/SignInWithIDToken.ino b/examples/Authentications/SignInWithIDToken/SignInWithIDToken.ino index c97dea4ae..02ef30138 100644 --- a/examples/Authentications/SignInWithIDToken/SignInWithIDToken.ino +++ b/examples/Authentications/SignInWithIDToken/SignInWithIDToken.ino @@ -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 */ diff --git a/examples/Authentications/SignInWithRefreshAccessToken/SignInWithRefreshAccessToken.ino b/examples/Authentications/SignInWithRefreshAccessToken/SignInWithRefreshAccessToken.ino index 2fb530389..2eb9e7efe 100644 --- a/examples/Authentications/SignInWithRefreshAccessToken/SignInWithRefreshAccessToken.ino +++ b/examples/Authentications/SignInWithRefreshAccessToken/SignInWithRefreshAccessToken.ino @@ -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 */ diff --git a/examples/Authentications/SignInWithRefreshIDToken/SignInWithRefreshIDToken.ino b/examples/Authentications/SignInWithRefreshIDToken/SignInWithRefreshIDToken.ino index 7f441db89..30244504f 100644 --- a/examples/Authentications/SignInWithRefreshIDToken/SignInWithRefreshIDToken.ino +++ b/examples/Authentications/SignInWithRefreshIDToken/SignInWithRefreshIDToken.ino @@ -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 */ diff --git a/examples/Authentications/TestMode/TestMode.ino b/examples/Authentications/TestMode/TestMode.ino index d26eba25a..db7824301 100644 --- a/examples/Authentications/TestMode/TestMode.ino +++ b/examples/Authentications/TestMode/TestMode.ino @@ -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 */ diff --git a/examples/Authentications/UserManagement/ResetPassword/ResetPassword.ino b/examples/Authentications/UserManagement/ResetPassword/ResetPassword.ino index e827a7e04..7cf4d476b 100644 --- a/examples/Authentications/UserManagement/ResetPassword/ResetPassword.ino +++ b/examples/Authentications/UserManagement/ResetPassword/ResetPassword.ino @@ -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()); } diff --git a/examples/Authentications/UserManagement/SendVerification/SendVerification.ino b/examples/Authentications/UserManagement/SendVerification/SendVerification.ino index 82e89bb2a..d7dcde50b 100644 --- a/examples/Authentications/UserManagement/SendVerification/SendVerification.ino +++ b/examples/Authentications/UserManagement/SendVerification/SendVerification.ino @@ -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 */ diff --git a/examples/Authentications/UserManagement/Signup/Signup.ino b/examples/Authentications/UserManagement/Signup/Signup.ino index a6aa233ba..a027bf541 100644 --- a/examples/Authentications/UserManagement/Signup/Signup.ino +++ b/examples/Authentications/UserManagement/Signup/Signup.ino @@ -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... "); diff --git a/examples/CloudFunctions/CallFunction/CallFunction.ino b/examples/CloudFunctions/CallFunction/CallFunction.ino index 60a5fe461..60a627801 100644 --- a/examples/CloudFunctions/CallFunction/CallFunction.ino +++ b/examples/CloudFunctions/CallFunction/CallFunction.ino @@ -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); diff --git a/examples/CloudFunctions/CreateFunction/CreateFunctionFromSources/CreateFunctionFromSources.ino b/examples/CloudFunctions/CreateFunction/CreateFunctionFromSources/CreateFunctionFromSources.ino index 2794fb170..433a5ff6d 100644 --- a/examples/CloudFunctions/CreateFunction/CreateFunctionFromSources/CreateFunctionFromSources.ino +++ b/examples/CloudFunctions/CreateFunction/CreateFunctionFromSources/CreateFunctionFromSources.ino @@ -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); diff --git a/examples/CloudFunctions/CreateFunction/CreateFunctionWithCallback/CreateFunctionWithCallback.ino b/examples/CloudFunctions/CreateFunction/CreateFunctionWithCallback/CreateFunctionWithCallback.ino index cc3597778..8ae47a5e9 100644 --- a/examples/CloudFunctions/CreateFunction/CreateFunctionWithCallback/CreateFunctionWithCallback.ino +++ b/examples/CloudFunctions/CreateFunction/CreateFunctionWithCallback/CreateFunctionWithCallback.ino @@ -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); diff --git a/examples/CloudFunctions/CreateFunction/CreateFunctionWithEventTrigger/CreateFunctionWithEventTrigger.ino b/examples/CloudFunctions/CreateFunction/CreateFunctionWithEventTrigger/CreateFunctionWithEventTrigger.ino index 940ca095c..6256e8775 100644 --- a/examples/CloudFunctions/CreateFunction/CreateFunctionWithEventTrigger/CreateFunctionWithEventTrigger.ino +++ b/examples/CloudFunctions/CreateFunction/CreateFunctionWithEventTrigger/CreateFunctionWithEventTrigger.ino @@ -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); diff --git a/examples/CloudFunctions/CreateFunction/CreateFunctionWithReturnStatus/CreateFunctionWithReturnStatus.ino b/examples/CloudFunctions/CreateFunction/CreateFunctionWithReturnStatus/CreateFunctionWithReturnStatus.ino index 865270d41..6775bbd7b 100644 --- a/examples/CloudFunctions/CreateFunction/CreateFunctionWithReturnStatus/CreateFunctionWithReturnStatus.ino +++ b/examples/CloudFunctions/CreateFunction/CreateFunctionWithReturnStatus/CreateFunctionWithReturnStatus.ino @@ -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); diff --git a/examples/CloudFunctions/CreateFunction/DeployAutoZipFunction/DeployAutoZipFunction.ino b/examples/CloudFunctions/CreateFunction/DeployAutoZipFunction/DeployAutoZipFunction.ino index 249dc5910..172b98864 100644 --- a/examples/CloudFunctions/CreateFunction/DeployAutoZipFunction/DeployAutoZipFunction.ino +++ b/examples/CloudFunctions/CreateFunction/DeployAutoZipFunction/DeployAutoZipFunction.ino @@ -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); diff --git a/examples/CloudFunctions/DeleteFunction/DeleteFunction.ino b/examples/CloudFunctions/DeleteFunction/DeleteFunction.ino index 9aa247eea..1e8d2a38d 100644 --- a/examples/CloudFunctions/DeleteFunction/DeleteFunction.ino +++ b/examples/CloudFunctions/DeleteFunction/DeleteFunction.ino @@ -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); diff --git a/examples/CloudFunctions/DownloadFunction/DownloadFunction.ino b/examples/CloudFunctions/DownloadFunction/DownloadFunction.ino index 3bda086fb..4c1f9d401 100644 --- a/examples/CloudFunctions/DownloadFunction/DownloadFunction.ino +++ b/examples/CloudFunctions/DownloadFunction/DownloadFunction.ino @@ -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); diff --git a/examples/CloudFunctions/IAMPolicy/GetPolicy/GetPolicy.ino b/examples/CloudFunctions/IAMPolicy/GetPolicy/GetPolicy.ino index b103d09fe..acfd9e290 100644 --- a/examples/CloudFunctions/IAMPolicy/GetPolicy/GetPolicy.ino +++ b/examples/CloudFunctions/IAMPolicy/GetPolicy/GetPolicy.ino @@ -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); diff --git a/examples/CloudFunctions/IAMPolicy/SetPolicy/SetPolicy.ino b/examples/CloudFunctions/IAMPolicy/SetPolicy/SetPolicy.ino index 14299fb2b..7928f4805 100644 --- a/examples/CloudFunctions/IAMPolicy/SetPolicy/SetPolicy.ino +++ b/examples/CloudFunctions/IAMPolicy/SetPolicy/SetPolicy.ino @@ -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); diff --git a/examples/CloudFunctions/ListFunctions/ListFunctions.ino b/examples/CloudFunctions/ListFunctions/ListFunctions.ino index 241dda209..5e22bd847 100644 --- a/examples/CloudFunctions/ListFunctions/ListFunctions.ino +++ b/examples/CloudFunctions/ListFunctions/ListFunctions.ino @@ -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); diff --git a/examples/CloudFunctions/PatchFunction/PatchFunction.ino b/examples/CloudFunctions/PatchFunction/PatchFunction.ino index 36a075e4c..5b771b037 100644 --- a/examples/CloudFunctions/PatchFunction/PatchFunction.ino +++ b/examples/CloudFunctions/PatchFunction/PatchFunction.ino @@ -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); diff --git a/examples/ExternalClient/FCM/Ethernet/ESP32/HTTPv1/SendMessage/SendMessage.ino b/examples/ExternalClient/FCM/Ethernet/ESP32/HTTPv1/SendMessage/SendMessage.ino index 1b2cdb1be..52aa2b5e1 100644 --- a/examples/ExternalClient/FCM/Ethernet/ESP32/HTTPv1/SendMessage/SendMessage.ino +++ b/examples/ExternalClient/FCM/Ethernet/ESP32/HTTPv1/SendMessage/SendMessage.ino @@ -113,9 +113,10 @@ void setup() fbdo.setEthernetClient(ð, Eth_MAC, WIZNET_CS_PIN, WIZNET_RESET_PIN /* or -1 */, nullptr /* or &staIP */); // 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.setDoubleDigits(5); diff --git a/examples/ExternalClient/RTDB/Ethernet/ESP32/Basic/Basic.ino b/examples/ExternalClient/RTDB/Ethernet/ESP32/Basic/Basic.ino index 711437afb..4ffa0acb7 100644 --- a/examples/ExternalClient/RTDB/Ethernet/ESP32/Basic/Basic.ino +++ b/examples/ExternalClient/RTDB/Ethernet/ESP32/Basic/Basic.ino @@ -99,9 +99,10 @@ void setup() fbdo.setEthernetClient(ð, Eth_MAC, WIZNET_CS_PIN, WIZNET_RESET_PIN); // The staIP can be assigned to the fifth param // 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.setDoubleDigits(5); diff --git a/examples/ExternalClient/RTDB/Ethernet/ESP32/StreamCallback/StreamCallback.ino b/examples/ExternalClient/RTDB/Ethernet/ESP32/StreamCallback/StreamCallback.ino index 6c4b48dbd..6cf8219c4 100644 --- a/examples/ExternalClient/RTDB/Ethernet/ESP32/StreamCallback/StreamCallback.ino +++ b/examples/ExternalClient/RTDB/Ethernet/ESP32/StreamCallback/StreamCallback.ino @@ -133,9 +133,10 @@ void setup() stream.setEthernetClient(ð2, Eth_MAC, WIZNET_CS_PIN, WIZNET_RESET_PIN); // The staIP can be assigned to the fifth param // 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(2048 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */); stream.setBSSLBufferSize(2048 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */); diff --git a/examples/ExternalClient/RTDB/Ethernet/ESP8266/Basic/Basic.ino b/examples/ExternalClient/RTDB/Ethernet/ESP8266/Basic/Basic.ino index 0e63f09c1..47f651c5e 100644 --- a/examples/ExternalClient/RTDB/Ethernet/ESP8266/Basic/Basic.ino +++ b/examples/ExternalClient/RTDB/Ethernet/ESP8266/Basic/Basic.ino @@ -100,9 +100,10 @@ void setup() fbdo.setEthernetClient(ð, Eth_MAC, WIZNET_CS_PIN, WIZNET_RESET_PIN); // The staIP can be assigned to the fifth param // 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.setDoubleDigits(5); diff --git a/examples/ExternalClient/RTDB/Ethernet/ESP8266/StreamCallback/StreamCallback.ino b/examples/ExternalClient/RTDB/Ethernet/ESP8266/StreamCallback/StreamCallback.ino index 54a27df91..14f24457b 100644 --- a/examples/ExternalClient/RTDB/Ethernet/ESP8266/StreamCallback/StreamCallback.ino +++ b/examples/ExternalClient/RTDB/Ethernet/ESP8266/StreamCallback/StreamCallback.ino @@ -134,9 +134,10 @@ void setup() stream.setEthernetClient(ð2, Eth_MAC, WIZNET_CS_PIN, WIZNET_RESET_PIN); // The staIP can be assigned to the fifth param // 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(2048 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */); stream.setBSSLBufferSize(2048 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */); diff --git a/examples/ExternalClient/RTDB/Ethernet/Others/Basic/Basic.ino b/examples/ExternalClient/RTDB/Ethernet/Others/Basic/Basic.ino index 3004fd6df..61a4d8f61 100644 --- a/examples/ExternalClient/RTDB/Ethernet/Others/Basic/Basic.ino +++ b/examples/ExternalClient/RTDB/Ethernet/Others/Basic/Basic.ino @@ -95,9 +95,10 @@ void setup() fbdo.setEthernetClient(ð, Eth_MAC, WIZNET_CS_PIN, WIZNET_RESET_PIN); // The staIP can be assigned to the fifth param // 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.setDoubleDigits(5); diff --git a/examples/ExternalClient/RTDB/Ethernet/Others/Basic/trust_anchors.h b/examples/ExternalClient/RTDB/Ethernet/Others/Basic/trust_anchors.h deleted file mode 100644 index 3ddbec5c7..000000000 --- a/examples/ExternalClient/RTDB/Ethernet/Others/Basic/trust_anchors.h +++ /dev/null @@ -1,78 +0,0 @@ -#ifndef _CERTIFICATES_H_ -#define _CERTIFICATES_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -/* This file is auto-generated by the pycert_bearssl tool. Do not change it manually. - * Certificates are BearSSL br_x509_trust_anchor format. Included certs: - * - * Index: 0 - * Label: GlobalSign Root CA - * Subject: CN=GlobalSign Root CA,OU=Root CA,O=GlobalSign nv-sa,C=BE - * Domain(s): www.google.com - */ - -#define TAs_NUM 1 - -static const unsigned char TA_DN0[] = { - 0x30, 0x57, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, - 0x02, 0x42, 0x45, 0x31, 0x19, 0x30, 0x17, 0x06, 0x03, 0x55, 0x04, 0x0a, - 0x13, 0x10, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, - 0x20, 0x6e, 0x76, 0x2d, 0x73, 0x61, 0x31, 0x10, 0x30, 0x0e, 0x06, 0x03, - 0x55, 0x04, 0x0b, 0x13, 0x07, 0x52, 0x6f, 0x6f, 0x74, 0x20, 0x43, 0x41, - 0x31, 0x1b, 0x30, 0x19, 0x06, 0x03, 0x55, 0x04, 0x03, 0x13, 0x12, 0x47, - 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x52, 0x6f, - 0x6f, 0x74, 0x20, 0x43, 0x41, -}; - -static const unsigned char TA_RSA_N0[] = { - 0xda, 0x0e, 0xe6, 0x99, 0x8d, 0xce, 0xa3, 0xe3, 0x4f, 0x8a, 0x7e, 0xfb, - 0xf1, 0x8b, 0x83, 0x25, 0x6b, 0xea, 0x48, 0x1f, 0xf1, 0x2a, 0xb0, 0xb9, - 0x95, 0x11, 0x04, 0xbd, 0xf0, 0x63, 0xd1, 0xe2, 0x67, 0x66, 0xcf, 0x1c, - 0xdd, 0xcf, 0x1b, 0x48, 0x2b, 0xee, 0x8d, 0x89, 0x8e, 0x9a, 0xaf, 0x29, - 0x80, 0x65, 0xab, 0xe9, 0xc7, 0x2d, 0x12, 0xcb, 0xab, 0x1c, 0x4c, 0x70, - 0x07, 0xa1, 0x3d, 0x0a, 0x30, 0xcd, 0x15, 0x8d, 0x4f, 0xf8, 0xdd, 0xd4, - 0x8c, 0x50, 0x15, 0x1c, 0xef, 0x50, 0xee, 0xc4, 0x2e, 0xf7, 0xfc, 0xe9, - 0x52, 0xf2, 0x91, 0x7d, 0xe0, 0x6d, 0xd5, 0x35, 0x30, 0x8e, 0x5e, 0x43, - 0x73, 0xf2, 0x41, 0xe9, 0xd5, 0x6a, 0xe3, 0xb2, 0x89, 0x3a, 0x56, 0x39, - 0x38, 0x6f, 0x06, 0x3c, 0x88, 0x69, 0x5b, 0x2a, 0x4d, 0xc5, 0xa7, 0x54, - 0xb8, 0x6c, 0x89, 0xcc, 0x9b, 0xf9, 0x3c, 0xca, 0xe5, 0xfd, 0x89, 0xf5, - 0x12, 0x3c, 0x92, 0x78, 0x96, 0xd6, 0xdc, 0x74, 0x6e, 0x93, 0x44, 0x61, - 0xd1, 0x8d, 0xc7, 0x46, 0xb2, 0x75, 0x0e, 0x86, 0xe8, 0x19, 0x8a, 0xd5, - 0x6d, 0x6c, 0xd5, 0x78, 0x16, 0x95, 0xa2, 0xe9, 0xc8, 0x0a, 0x38, 0xeb, - 0xf2, 0x24, 0x13, 0x4f, 0x73, 0x54, 0x93, 0x13, 0x85, 0x3a, 0x1b, 0xbc, - 0x1e, 0x34, 0xb5, 0x8b, 0x05, 0x8c, 0xb9, 0x77, 0x8b, 0xb1, 0xdb, 0x1f, - 0x20, 0x91, 0xab, 0x09, 0x53, 0x6e, 0x90, 0xce, 0x7b, 0x37, 0x74, 0xb9, - 0x70, 0x47, 0x91, 0x22, 0x51, 0x63, 0x16, 0x79, 0xae, 0xb1, 0xae, 0x41, - 0x26, 0x08, 0xc8, 0x19, 0x2b, 0xd1, 0x46, 0xaa, 0x48, 0xd6, 0x64, 0x2a, - 0xd7, 0x83, 0x34, 0xff, 0x2c, 0x2a, 0xc1, 0x6c, 0x19, 0x43, 0x4a, 0x07, - 0x85, 0xe7, 0xd3, 0x7c, 0xf6, 0x21, 0x68, 0xef, 0xea, 0xf2, 0x52, 0x9f, - 0x7f, 0x93, 0x90, 0xcf, -}; - -static const unsigned char TA_RSA_E0[] = { - 0x01, 0x00, 0x01, -}; - -static const br_x509_trust_anchor TAs[] = { - { - { (unsigned char *)TA_DN0, sizeof TA_DN0 }, - BR_X509_TA_CA, - { - BR_KEYTYPE_RSA, - { .rsa = { - (unsigned char *)TA_RSA_N0, sizeof TA_RSA_N0, - (unsigned char *)TA_RSA_E0, sizeof TA_RSA_E0, - } } - } - }, -}; - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif /* ifndef _CERTIFICATES_H_ */ \ No newline at end of file diff --git a/examples/ExternalClient/RTDB/Ethernet/Pico/Basic/Basic.ino b/examples/ExternalClient/RTDB/Ethernet/Pico/Basic/Basic.ino index 8dcbb9f7d..ea86f50e5 100644 --- a/examples/ExternalClient/RTDB/Ethernet/Pico/Basic/Basic.ino +++ b/examples/ExternalClient/RTDB/Ethernet/Pico/Basic/Basic.ino @@ -114,9 +114,10 @@ void setup() fbdo.setEthernetClient(ð, Eth_MAC, WIZNET_CS_PIN, WIZNET_RESET_PIN); // The staIP can be assigned to the fifth param // 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.setDoubleDigits(5); diff --git a/examples/ExternalClient/RTDB/Ethernet/Pico/StreamCallback/StreamCallback.ino b/examples/ExternalClient/RTDB/Ethernet/Pico/StreamCallback/StreamCallback.ino index a363e1e65..fc235521c 100644 --- a/examples/ExternalClient/RTDB/Ethernet/Pico/StreamCallback/StreamCallback.ino +++ b/examples/ExternalClient/RTDB/Ethernet/Pico/StreamCallback/StreamCallback.ino @@ -144,9 +144,10 @@ void setup() stream.setEthernetClient(ð2, Eth_MAC, WIZNET_CS_PIN, WIZNET_RESET_PIN); // The staIP can be assigned to the fifth param // 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(2048 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */); stream.setBSSLBufferSize(2048 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */); diff --git a/examples/ExternalClient/RTDB/GSM/Basic/Basic.ino b/examples/ExternalClient/RTDB/GSM/Basic/Basic.ino index b2dfe265e..d493344ab 100644 --- a/examples/ExternalClient/RTDB/GSM/Basic/Basic.ino +++ b/examples/ExternalClient/RTDB/GSM/Basic/Basic.ino @@ -171,9 +171,10 @@ void setup() fbdo.setGSMClient(&gsm_client, &modem, GSM_PIN, apn, gprsUser, gprsPass); // 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.setDoubleDigits(5); diff --git a/examples/ExternalClient/RTDB/GSM/StreamCallback/StreamCallback.ino b/examples/ExternalClient/RTDB/GSM/StreamCallback/StreamCallback.ino index cff26d26b..faca85595 100644 --- a/examples/ExternalClient/RTDB/GSM/StreamCallback/StreamCallback.ino +++ b/examples/ExternalClient/RTDB/GSM/StreamCallback/StreamCallback.ino @@ -219,9 +219,10 @@ void setup() stream.setGSMClient(&gsm_client2, &modem, GSM_PIN, apn, gprsUser, gprsPass); // 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(2048 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */); stream.setBSSLBufferSize(2048 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */); diff --git a/examples/ExternalClient/RTDB/Generic/Basic/Basic.ino b/examples/ExternalClient/RTDB/Generic/Basic/Basic.ino index 7cd54bd93..c75f63faf 100644 --- a/examples/ExternalClient/RTDB/Generic/Basic/Basic.ino +++ b/examples/ExternalClient/RTDB/Generic/Basic/Basic.ino @@ -87,9 +87,10 @@ void setup() fbdo.setGenericClient(&client, networkConnection, networkStatusRequestCallback); // 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.setDoubleDigits(5); diff --git a/examples/ExternalClient/RTDB/Generic/StreamCallback/StreamCallback.ino b/examples/ExternalClient/RTDB/Generic/StreamCallback/StreamCallback.ino index 9e8ce1264..39b04764d 100644 --- a/examples/ExternalClient/RTDB/Generic/StreamCallback/StreamCallback.ino +++ b/examples/ExternalClient/RTDB/Generic/StreamCallback/StreamCallback.ino @@ -130,9 +130,10 @@ void setup() stream.setGenericClient(&client2, networkConnection, networkStatusRequestCallback); // 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(2048 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */); stream.setBSSLBufferSize(2048 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */); diff --git a/examples/ExternalClient/RTDB/WiFi/Basic/Basic.ino b/examples/ExternalClient/RTDB/WiFi/Basic/Basic.ino index 7b2147fc5..e55123a07 100644 --- a/examples/ExternalClient/RTDB/WiFi/Basic/Basic.ino +++ b/examples/ExternalClient/RTDB/WiFi/Basic/Basic.ino @@ -126,7 +126,7 @@ void setup() fbdo.setExternalClientCallbacks(networkConnection, networkStatusRequestCallback); // Comment or pass false value when WiFi reconnection will control by your code or third party library - Firebase.reconnectWiFi(true); + Firebase.reconnectNetwork(true); Firebase.setDoubleDigits(5); diff --git a/examples/ExternalClient/RTDB/WiFi/StreamCallback/StreamCallback.ino b/examples/ExternalClient/RTDB/WiFi/StreamCallback/StreamCallback.ino index 442c8078a..83a832782 100644 --- a/examples/ExternalClient/RTDB/WiFi/StreamCallback/StreamCallback.ino +++ b/examples/ExternalClient/RTDB/WiFi/StreamCallback/StreamCallback.ino @@ -173,7 +173,7 @@ void setup() /* Assign the required callback functions */ stream.setExternalClientCallbacks(networkConnection, networkStatusRequestCallback); - Firebase.reconnectWiFi(true); + Firebase.reconnectNetwork(true); Firebase.begin(&config, &auth); diff --git a/examples/FirebaseJson/Client/Firebase/Firebase.ino b/examples/FirebaseJson/Client/Firebase/Firebase.ino index 41e592a26..ebbd23c63 100644 --- a/examples/FirebaseJson/Client/Firebase/Firebase.ino +++ b/examples/FirebaseJson/Client/Firebase/Firebase.ino @@ -83,6 +83,10 @@ void setup() /* Assign the callback function for the long running token generation task */ config.token_status_callback = tokenStatusCallback; // see addons/TokenHelper.h + // Since Firebase 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(2048 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */); + // Or use legacy authenticate method // config.database_url = DATABASE_URL; // config.signer.tokens.legacy_token = ""; @@ -90,7 +94,7 @@ void setup() Firebase.begin(&config, &auth); // Comment or pass false value when WiFi reconnection will control by your code or third party library - Firebase.reconnectWiFi(true); + Firebase.reconnectNetwork(true); } void loop() diff --git a/examples/Firestore/BatchGetDocuments/BatchGetDocuments.ino b/examples/Firestore/BatchGetDocuments/BatchGetDocuments.ino index 576959ee6..77c01913d 100644 --- a/examples/Firestore/BatchGetDocuments/BatchGetDocuments.ino +++ b/examples/Firestore/BatchGetDocuments/BatchGetDocuments.ino @@ -109,9 +109,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 */); // Limit the size of response payload to be collected in FirebaseData diff --git a/examples/Firestore/BatchWriteDocuments/BatchWriteDocuments.ino b/examples/Firestore/BatchWriteDocuments/BatchWriteDocuments.ino index 1205454bf..5622b16d1 100644 --- a/examples/Firestore/BatchWriteDocuments/BatchWriteDocuments.ino +++ b/examples/Firestore/BatchWriteDocuments/BatchWriteDocuments.ino @@ -110,9 +110,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 */); // Limit the size of response payload to be collected in FirebaseData diff --git a/examples/Firestore/CommitDocument/AppendArray/AppendArray.ino b/examples/Firestore/CommitDocument/AppendArray/AppendArray.ino index 7a3dee842..6da14d788 100644 --- a/examples/Firestore/CommitDocument/AppendArray/AppendArray.ino +++ b/examples/Firestore/CommitDocument/AppendArray/AppendArray.ino @@ -105,9 +105,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 */); // Limit the size of response payload to be collected in FirebaseData diff --git a/examples/Firestore/CommitDocument/AppendMapValue/AppendMapValue.ino b/examples/Firestore/CommitDocument/AppendMapValue/AppendMapValue.ino index 6e3768a8e..303b36433 100644 --- a/examples/Firestore/CommitDocument/AppendMapValue/AppendMapValue.ino +++ b/examples/Firestore/CommitDocument/AppendMapValue/AppendMapValue.ino @@ -105,9 +105,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 */); // Limit the size of response payload to be collected in FirebaseData diff --git a/examples/Firestore/CommitDocument/AppendMapValueArray/AppendMapValueArray.ino b/examples/Firestore/CommitDocument/AppendMapValueArray/AppendMapValueArray.ino index 2c9a31f1f..4f9ff06d0 100644 --- a/examples/Firestore/CommitDocument/AppendMapValueArray/AppendMapValueArray.ino +++ b/examples/Firestore/CommitDocument/AppendMapValueArray/AppendMapValueArray.ino @@ -105,9 +105,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 */); // Limit the size of response payload to be collected in FirebaseData diff --git a/examples/Firestore/CommitDocument/AppendMapValueTimestamp/AppendMapValueTimestamp.ino b/examples/Firestore/CommitDocument/AppendMapValueTimestamp/AppendMapValueTimestamp.ino index 0b7b0ee4b..31093a477 100644 --- a/examples/Firestore/CommitDocument/AppendMapValueTimestamp/AppendMapValueTimestamp.ino +++ b/examples/Firestore/CommitDocument/AppendMapValueTimestamp/AppendMapValueTimestamp.ino @@ -105,9 +105,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 */); // Limit the size of response payload to be collected in FirebaseData diff --git a/examples/Firestore/CommitDocument/IncrementFieldValue/IncrementFieldValue.ino b/examples/Firestore/CommitDocument/IncrementFieldValue/IncrementFieldValue.ino index d11b1c69a..d1d872f87 100644 --- a/examples/Firestore/CommitDocument/IncrementFieldValue/IncrementFieldValue.ino +++ b/examples/Firestore/CommitDocument/IncrementFieldValue/IncrementFieldValue.ino @@ -105,9 +105,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 */); // Limit the size of response payload to be collected in FirebaseData diff --git a/examples/Firestore/CommitDocument/SetUpdateDelete/SetUpdateDelete.ino b/examples/Firestore/CommitDocument/SetUpdateDelete/SetUpdateDelete.ino index 04b4b2ba6..a1679904f 100644 --- a/examples/Firestore/CommitDocument/SetUpdateDelete/SetUpdateDelete.ino +++ b/examples/Firestore/CommitDocument/SetUpdateDelete/SetUpdateDelete.ino @@ -105,9 +105,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 */); // Limit the size of response payload to be collected in FirebaseData diff --git a/examples/Firestore/CreateDocuments/CreateDocuments.ino b/examples/Firestore/CreateDocuments/CreateDocuments.ino index 31bcb4759..49f61d6ad 100644 --- a/examples/Firestore/CreateDocuments/CreateDocuments.ino +++ b/examples/Firestore/CreateDocuments/CreateDocuments.ino @@ -130,9 +130,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 */); // Limit the size of response payload to be collected in FirebaseData diff --git a/examples/Firestore/DataQuery/DataQuery.ino b/examples/Firestore/DataQuery/DataQuery.ino index 648d855ca..f140ed51c 100644 --- a/examples/Firestore/DataQuery/DataQuery.ino +++ b/examples/Firestore/DataQuery/DataQuery.ino @@ -105,9 +105,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 */); // Limit the size of response payload to be collected in FirebaseData diff --git a/examples/Firestore/DeleteDocument/DeleteDocument.ino b/examples/Firestore/DeleteDocument/DeleteDocument.ino index 84dd74fd0..abb94774a 100644 --- a/examples/Firestore/DeleteDocument/DeleteDocument.ino +++ b/examples/Firestore/DeleteDocument/DeleteDocument.ino @@ -104,9 +104,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 */); // Limit the size of response payload to be collected in FirebaseData diff --git a/examples/Firestore/ExportDocuments/ExportDocuments.ino b/examples/Firestore/ExportDocuments/ExportDocuments.ino index 5016afe32..e3d6fda11 100644 --- a/examples/Firestore/ExportDocuments/ExportDocuments.ino +++ b/examples/Firestore/ExportDocuments/ExportDocuments.ino @@ -111,9 +111,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 */); // Limit the size of response payload to be collected in FirebaseData diff --git a/examples/Firestore/GetDocument/GetDocument.ino b/examples/Firestore/GetDocument/GetDocument.ino index 3adbb2f91..9d79a5bc3 100644 --- a/examples/Firestore/GetDocument/GetDocument.ino +++ b/examples/Firestore/GetDocument/GetDocument.ino @@ -106,9 +106,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 */); // Limit the size of response payload to be collected in FirebaseData diff --git a/examples/Firestore/ImportDocuments/ImportDocuments.ino b/examples/Firestore/ImportDocuments/ImportDocuments.ino index 4ea23f344..d1289442a 100644 --- a/examples/Firestore/ImportDocuments/ImportDocuments.ino +++ b/examples/Firestore/ImportDocuments/ImportDocuments.ino @@ -111,9 +111,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 */); // Limit the size of response payload to be collected in FirebaseData diff --git a/examples/Firestore/Indexes/CreateIndex/CreateIndex.ino b/examples/Firestore/Indexes/CreateIndex/CreateIndex.ino index 8bd704d78..89b78d417 100644 --- a/examples/Firestore/Indexes/CreateIndex/CreateIndex.ino +++ b/examples/Firestore/Indexes/CreateIndex/CreateIndex.ino @@ -122,9 +122,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); diff --git a/examples/Firestore/Indexes/DeleteIndex/DeleteIndex.ino b/examples/Firestore/Indexes/DeleteIndex/DeleteIndex.ino index 097bbab86..be4f4dc29 100644 --- a/examples/Firestore/Indexes/DeleteIndex/DeleteIndex.ino +++ b/examples/Firestore/Indexes/DeleteIndex/DeleteIndex.ino @@ -122,9 +122,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); diff --git a/examples/Firestore/ListCollectionIds/ListCollectionIds.ino b/examples/Firestore/ListCollectionIds/ListCollectionIds.ino index 16cbd2bcd..290cd401a 100644 --- a/examples/Firestore/ListCollectionIds/ListCollectionIds.ino +++ b/examples/Firestore/ListCollectionIds/ListCollectionIds.ino @@ -108,9 +108,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 */); // Limit the size of response payload to be collected in FirebaseData diff --git a/examples/Firestore/ListDocuments/ListDocuments.ino b/examples/Firestore/ListDocuments/ListDocuments.ino index 4939ff834..acf1e56e6 100644 --- a/examples/Firestore/ListDocuments/ListDocuments.ino +++ b/examples/Firestore/ListDocuments/ListDocuments.ino @@ -104,9 +104,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 */); // Limit the size of response payload to be collected in FirebaseData diff --git a/examples/Firestore/PatchDocument/AppendMapValue/AppendMapValue.ino b/examples/Firestore/PatchDocument/AppendMapValue/AppendMapValue.ino index 7453797ca..7046220a7 100644 --- a/examples/Firestore/PatchDocument/AppendMapValue/AppendMapValue.ino +++ b/examples/Firestore/PatchDocument/AppendMapValue/AppendMapValue.ino @@ -105,9 +105,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 */); // Limit the size of response payload to be collected in FirebaseData diff --git a/examples/Firestore/PatchDocument/UpdateDocument/UpdateDocument.ino b/examples/Firestore/PatchDocument/UpdateDocument/UpdateDocument.ino index d2a21a7bf..ea5c22081 100644 --- a/examples/Firestore/PatchDocument/UpdateDocument/UpdateDocument.ino +++ b/examples/Firestore/PatchDocument/UpdateDocument/UpdateDocument.ino @@ -107,9 +107,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 */); // Limit the size of response payload to be collected in FirebaseData diff --git a/examples/Messaging/AppInstanceInfo/AppInstanceInfo.ino b/examples/Messaging/AppInstanceInfo/AppInstanceInfo.ino index 367f20f24..a8ab7eaae 100644 --- a/examples/Messaging/AppInstanceInfo/AppInstanceInfo.ino +++ b/examples/Messaging/AppInstanceInfo/AppInstanceInfo.ino @@ -107,9 +107,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("Get the app instance info... "); diff --git a/examples/Messaging/RegistAPNsTokens/RegistAPNsTokens.ino b/examples/Messaging/RegistAPNsTokens/RegistAPNsTokens.ino index 999a3a86e..0569c80fa 100644 --- a/examples/Messaging/RegistAPNsTokens/RegistAPNsTokens.ino +++ b/examples/Messaging/RegistAPNsTokens/RegistAPNsTokens.ino @@ -108,9 +108,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("Subscribe the topic... "); diff --git a/examples/Messaging/Send/HTTPv1/SendMessage/SendMessage.ino b/examples/Messaging/Send/HTTPv1/SendMessage/SendMessage.ino index c5b752f87..957ef0a82 100644 --- a/examples/Messaging/Send/HTTPv1/SendMessage/SendMessage.ino +++ b/examples/Messaging/Send/HTTPv1/SendMessage/SendMessage.ino @@ -126,9 +126,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); diff --git a/examples/Messaging/Send/HTTPv1/SendTopic/SendTopic.ino b/examples/Messaging/Send/HTTPv1/SendTopic/SendTopic.ino index a49d600b2..e298697f6 100644 --- a/examples/Messaging/Send/HTTPv1/SendTopic/SendTopic.ino +++ b/examples/Messaging/Send/HTTPv1/SendTopic/SendTopic.ino @@ -128,9 +128,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); diff --git a/examples/Messaging/Send/LegacyAPI/BroadcastMessage/BroadcastMessage.ino b/examples/Messaging/Send/LegacyAPI/BroadcastMessage/BroadcastMessage.ino index 9716117e9..089462d3e 100644 --- a/examples/Messaging/Send/LegacyAPI/BroadcastMessage/BroadcastMessage.ino +++ b/examples/Messaging/Send/LegacyAPI/BroadcastMessage/BroadcastMessage.ino @@ -103,9 +103,10 @@ void setup() Firebase.FCM.setServerKey(FIREBASE_FCM_SERVER_KEY); // 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 */); sendMessage(); diff --git a/examples/Messaging/Send/LegacyAPI/SendMessage/SendMessage.ino b/examples/Messaging/Send/LegacyAPI/SendMessage/SendMessage.ino index 5ff78e0b6..9a0dcc563 100644 --- a/examples/Messaging/Send/LegacyAPI/SendMessage/SendMessage.ino +++ b/examples/Messaging/Send/LegacyAPI/SendMessage/SendMessage.ino @@ -115,9 +115,10 @@ void setup() Firebase.FCM.setServerKey(FIREBASE_FCM_SERVER_KEY); // 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 */); // or to use ESP8266 Ethernet module diff --git a/examples/Messaging/Send/LegacyAPI/SendMessageEthernet/ESP32/ESP32.ino b/examples/Messaging/Send/LegacyAPI/SendMessageEthernet/ESP32/ESP32.ino index b036e4ea6..afc56d556 100644 --- a/examples/Messaging/Send/LegacyAPI/SendMessageEthernet/ESP32/ESP32.ino +++ b/examples/Messaging/Send/LegacyAPI/SendMessageEthernet/ESP32/ESP32.ino @@ -186,9 +186,10 @@ void setupFCM() Firebase.FCM.setServerKey(FIREBASE_FCM_SERVER_KEY); // 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 */); } diff --git a/examples/Messaging/Send/LegacyAPI/SendMessageEthernet/ESP8266/ESP8266.ino b/examples/Messaging/Send/LegacyAPI/SendMessageEthernet/ESP8266/ESP8266.ino index e82cbd6fd..cfcce1c7b 100644 --- a/examples/Messaging/Send/LegacyAPI/SendMessageEthernet/ESP8266/ESP8266.ino +++ b/examples/Messaging/Send/LegacyAPI/SendMessageEthernet/ESP8266/ESP8266.ino @@ -129,9 +129,10 @@ void setup() Firebase.FCM.setServerKey(FIREBASE_FCM_SERVER_KEY, &spi_ethernet_module); // 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 */); sendMessage(); diff --git a/examples/Messaging/Send/LegacyAPI/SendTopic/SendTopic.ino b/examples/Messaging/Send/LegacyAPI/SendTopic/SendTopic.ino index 5567daa4f..4a3b6738f 100644 --- a/examples/Messaging/Send/LegacyAPI/SendTopic/SendTopic.ino +++ b/examples/Messaging/Send/LegacyAPI/SendTopic/SendTopic.ino @@ -98,9 +98,10 @@ void setup() Firebase.FCM.setServerKey(FIREBASE_FCM_SERVER_KEY); // 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 */); sendMessage(); diff --git a/examples/Messaging/SubscribeTopic/SubscribeTopic.ino b/examples/Messaging/SubscribeTopic/SubscribeTopic.ino index 6d52a40b1..fa4105aab 100644 --- a/examples/Messaging/SubscribeTopic/SubscribeTopic.ino +++ b/examples/Messaging/SubscribeTopic/SubscribeTopic.ino @@ -108,9 +108,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("Subscribe the topic... "); diff --git a/examples/Messaging/UnsubscribeTopic/UnsubscribeTopic.ino b/examples/Messaging/UnsubscribeTopic/UnsubscribeTopic.ino index d9e9478ba..266ad3643 100644 --- a/examples/Messaging/UnsubscribeTopic/UnsubscribeTopic.ino +++ b/examples/Messaging/UnsubscribeTopic/UnsubscribeTopic.ino @@ -108,9 +108,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("Unsubscribe the topic... "); diff --git a/examples/RTDB/BackupRestore/Flash/Flash.ino b/examples/RTDB/BackupRestore/Flash/Flash.ino index 68115590a..5d82480b1 100644 --- a/examples/RTDB/BackupRestore/Flash/Flash.ino +++ b/examples/RTDB/BackupRestore/Flash/Flash.ino @@ -107,9 +107,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 */); // Or use legacy authenticate method @@ -119,7 +120,6 @@ void setup() // To connect without auth in Test Mode, see Authentications/TestMode/TestMode.ino Firebase.begin(&config, &auth); - } // The Firebase download callback function diff --git a/examples/RTDB/BackupRestore/SD/SD.ino b/examples/RTDB/BackupRestore/SD/SD.ino index f6bb7f05d..9052e8627 100644 --- a/examples/RTDB/BackupRestore/SD/SD.ino +++ b/examples/RTDB/BackupRestore/SD/SD.ino @@ -111,9 +111,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 */); // Or use legacy authenticate method diff --git a/examples/RTDB/Basic/Basic.ino b/examples/RTDB/Basic/Basic.ino index 189c1e581..87ca3db0d 100644 --- a/examples/RTDB/Basic/Basic.ino +++ b/examples/RTDB/Basic/Basic.ino @@ -116,9 +116,10 @@ void setup() ////////////////////////////////////////////////////////////////////////////////////////////// // 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 */); // Limit the size of response payload to be collected in FirebaseData @@ -143,8 +144,8 @@ void setup() /** Timeout options. - //WiFi reconnect timeout (interval) in ms (10 sec - 5 min) when WiFi disconnected. - config.timeout.wifiReconnect = 10 * 1000; + //Network reconnect timeout (interval) in ms (10 sec - 5 min) when network or WiFi disconnected. + config.timeout.networkReconnect = 10 * 1000; //Socket connection and SSL handshake timeout in ms (1 sec - 1 min). config.timeout.socketConnection = 10 * 1000; diff --git a/examples/RTDB/BasicCert/BasicCert.ino b/examples/RTDB/BasicCert/BasicCert.ino index 89eff78dc..ab3f323dc 100644 --- a/examples/RTDB/BasicCert/BasicCert.ino +++ b/examples/RTDB/BasicCert/BasicCert.ino @@ -163,9 +163,10 @@ void setup() fbdo.setCert(rootCACert); // 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 */); /* Or assign the certificate file */ @@ -197,8 +198,8 @@ void setup() /** Timeout options. - //WiFi reconnect timeout (interval) in ms (10 sec - 5 min) when WiFi disconnected. - config.timeout.wifiReconnect = 10 * 1000; + //Network reconnect timeout (interval) in ms (10 sec - 5 min) when network or WiFi disconnected. + config.timeout.networkReconnect = 10 * 1000; //Socket connection and SSL handshake timeout in ms (1 sec - 1 min). config.timeout.socketConnection = 10 * 1000; diff --git a/examples/RTDB/BasicEthernet/ESP32/ESP32.ino b/examples/RTDB/BasicEthernet/ESP32/ESP32.ino index 5cfaec656..c5a99caac 100644 --- a/examples/RTDB/BasicEthernet/ESP32/ESP32.ino +++ b/examples/RTDB/BasicEthernet/ESP32/ESP32.ino @@ -206,9 +206,10 @@ void setupFirebase() 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 */); // Or use legacy authenticate method diff --git a/examples/RTDB/BasicEthernet/ESP8266/ESP8266.ino b/examples/RTDB/BasicEthernet/ESP8266/ESP8266.ino index 7093310ff..ebc53b4e0 100644 --- a/examples/RTDB/BasicEthernet/ESP8266/ESP8266.ino +++ b/examples/RTDB/BasicEthernet/ESP8266/ESP8266.ino @@ -111,9 +111,10 @@ void setupFirebase() #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 */); // Or use legacy authenticate method diff --git a/examples/RTDB/Blob/Blob.ino b/examples/RTDB/Blob/Blob.ino index 19f7cd417..ec6126766 100644 --- a/examples/RTDB/Blob/Blob.ino +++ b/examples/RTDB/Blob/Blob.ino @@ -113,9 +113,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 */); // Or use legacy authenticate method diff --git a/examples/RTDB/Blynk/Blynk.ino b/examples/RTDB/Blynk/Blynk.ino index 565f7a9f7..15c134a8b 100644 --- a/examples/RTDB/Blynk/Blynk.ino +++ b/examples/RTDB/Blynk/Blynk.ino @@ -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 */); // Or use legacy authenticate method diff --git a/examples/RTDB/DataChangesListener/Callback/Callback.ino b/examples/RTDB/DataChangesListener/Callback/Callback.ino index 3903c45f1..0cef7850d 100644 --- a/examples/RTDB/DataChangesListener/Callback/Callback.ino +++ b/examples/RTDB/DataChangesListener/Callback/Callback.ino @@ -145,9 +145,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(2048 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */); stream.setBSSLBufferSize(2048 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */); @@ -174,8 +175,8 @@ void setup() /** Timeout options, below is default config. - //WiFi reconnect timeout (interval) in ms (10 sec - 5 min) when WiFi disconnected. - config.timeout.wifiReconnect = 10 * 1000; + //Network reconnect timeout (interval) in ms (10 sec - 5 min) when network or WiFi disconnected. + config.timeout.networkReconnect = 10 * 1000; //Socket begin connection timeout (ESP32) or data transfer timeout (ESP8266) in ms (1 sec - 1 min). config.timeout.socketConnection = 30 * 1000; diff --git a/examples/RTDB/DataChangesListener/MultiPath/MultiPath.ino b/examples/RTDB/DataChangesListener/MultiPath/MultiPath.ino index fdcb5f492..a6fc72414 100644 --- a/examples/RTDB/DataChangesListener/MultiPath/MultiPath.ino +++ b/examples/RTDB/DataChangesListener/MultiPath/MultiPath.ino @@ -131,6 +131,11 @@ void setup() Serial.printf("Firebase Client v%s\n\n", FIREBASE_CLIENT_VERSION); + Serial.println("The MultipathStream is obsoleted, please use normal stream instead."); + Serial.println("You can use may FirebaseData objects for multiple streaming in ESP32 and Raspberry Pi Pico."); + Serial.println("In case of ESP8266, external Static RAM is recommend for multiple streaming."); + Serial.println("For device with less memory, multiple streaming is not recommended."); + /* Assign the api key (required) */ config.api_key = API_KEY; @@ -152,9 +157,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(2048 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */); stream.setBSSLBufferSize(2048 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */); @@ -186,8 +192,8 @@ void setup() /** Timeout options, below is default config. - //WiFi reconnect timeout (interval) in ms (10 sec - 5 min) when WiFi disconnected. - config.timeout.wifiReconnect = 10 * 1000; + //Network reconnect timeout (interval) in ms (10 sec - 5 min) when network or WiFi disconnected. + config.timeout.networkReconnect = 10 * 1000; //Socket begin connection timeout (ESP32) or data transfer timeout (ESP8266) in ms (1 sec - 1 min). config.timeout.socketConnection = 30 * 1000; diff --git a/examples/RTDB/DataChangesListener/NoCallback/NoCallback.ino b/examples/RTDB/DataChangesListener/NoCallback/NoCallback.ino index 3ec925b9d..0195823be 100644 --- a/examples/RTDB/DataChangesListener/NoCallback/NoCallback.ino +++ b/examples/RTDB/DataChangesListener/NoCallback/NoCallback.ino @@ -110,9 +110,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(2048 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */); stream.setBSSLBufferSize(2048 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */); @@ -137,8 +138,8 @@ void setup() /** Timeout options, below is default config. - //WiFi reconnect timeout (interval) in ms (10 sec - 5 min) when WiFi disconnected. - config.timeout.wifiReconnect = 10 * 1000; + //Network reconnect timeout (interval) in ms (10 sec - 5 min) when network or WiFi disconnected. + config.timeout.networkReconnect = 10 * 1000; //Socket begin connection timeout (ESP32) or data transfer timeout (ESP8266) in ms (1 sec - 1 min). config.timeout.socketConnection = 30 * 1000; diff --git a/examples/RTDB/DataChangesListener/SingleDataObject/SingleDataObject.ino b/examples/RTDB/DataChangesListener/SingleDataObject/SingleDataObject.ino index cf35442a8..27c75a8dd 100644 --- a/examples/RTDB/DataChangesListener/SingleDataObject/SingleDataObject.ino +++ b/examples/RTDB/DataChangesListener/SingleDataObject/SingleDataObject.ino @@ -113,9 +113,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 */); // Or use legacy authenticate method diff --git a/examples/RTDB/DataFilter/DataFilter.ino b/examples/RTDB/DataFilter/DataFilter.ino index ecc5c5161..7a54346de 100644 --- a/examples/RTDB/DataFilter/DataFilter.ino +++ b/examples/RTDB/DataFilter/DataFilter.ino @@ -113,9 +113,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 */); // Or use legacy authenticate method diff --git a/examples/RTDB/DataRetaining/DataRetaining.ino b/examples/RTDB/DataRetaining/DataRetaining.ino index 1b2e865a9..b12d282a4 100644 --- a/examples/RTDB/DataRetaining/DataRetaining.ino +++ b/examples/RTDB/DataRetaining/DataRetaining.ino @@ -117,9 +117,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); diff --git a/examples/RTDB/DatabaseRules/DatabaseRules.ino b/examples/RTDB/DatabaseRules/DatabaseRules.ino index 514ee9bb6..cd319989c 100644 --- a/examples/RTDB/DatabaseRules/DatabaseRules.ino +++ b/examples/RTDB/DatabaseRules/DatabaseRules.ino @@ -119,9 +119,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 */); // Or use legacy authenticate method diff --git a/examples/RTDB/DownloadFileOTA/DownloadFileOTA.ino b/examples/RTDB/DownloadFileOTA/DownloadFileOTA.ino index 144b6f0ba..03261bce1 100644 --- a/examples/RTDB/DownloadFileOTA/DownloadFileOTA.ino +++ b/examples/RTDB/DownloadFileOTA/DownloadFileOTA.ino @@ -111,9 +111,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 */); // Or use legacy authenticate method diff --git a/examples/RTDB/ETag/ETag.ino b/examples/RTDB/ETag/ETag.ino index 055750814..03c8e03a5 100644 --- a/examples/RTDB/ETag/ETag.ino +++ b/examples/RTDB/ETag/ETag.ino @@ -112,9 +112,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 */); // Or use legacy authenticate method diff --git a/examples/RTDB/FastSend/FastSend.ino b/examples/RTDB/FastSend/FastSend.ino index 6b6d3bd8b..91972aac3 100644 --- a/examples/RTDB/FastSend/FastSend.ino +++ b/examples/RTDB/FastSend/FastSend.ino @@ -115,9 +115,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 */); // Or use legacy authenticate method diff --git a/examples/RTDB/File/Flash/Flash.ino b/examples/RTDB/File/Flash/Flash.ino index 768306304..d86a10152 100644 --- a/examples/RTDB/File/Flash/Flash.ino +++ b/examples/RTDB/File/Flash/Flash.ino @@ -120,9 +120,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 */); // Or use legacy authenticate method diff --git a/examples/RTDB/File/SD/SD.ino b/examples/RTDB/File/SD/SD.ino index 96fc47105..4fa17e472 100644 --- a/examples/RTDB/File/SD/SD.ino +++ b/examples/RTDB/File/SD/SD.ino @@ -117,9 +117,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 */); // Or use legacy authenticate method diff --git a/examples/RTDB/Priority/Priority.ino b/examples/RTDB/Priority/Priority.ino index 285e03a97..88b365200 100644 --- a/examples/RTDB/Priority/Priority.ino +++ b/examples/RTDB/Priority/Priority.ino @@ -118,9 +118,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 */); // Or use legacy authenticate method diff --git a/examples/RTDB/Queue/Queue.ino b/examples/RTDB/Queue/Queue.ino index d89129698..a4b536719 100644 --- a/examples/RTDB/Queue/Queue.ino +++ b/examples/RTDB/Queue/Queue.ino @@ -145,9 +145,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 */); // Or use legacy authenticate method diff --git a/examples/RTDB/ShallowedData/ShallowedData.ino b/examples/RTDB/ShallowedData/ShallowedData.ino index d78328d56..a26b29e1f 100644 --- a/examples/RTDB/ShallowedData/ShallowedData.ino +++ b/examples/RTDB/ShallowedData/ShallowedData.ino @@ -111,9 +111,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 */); // Or use legacy authenticate method diff --git a/examples/RTDB/Timestamp/Timestamp.ino b/examples/RTDB/Timestamp/Timestamp.ino index 5b22ab896..de295183b 100644 --- a/examples/RTDB/Timestamp/Timestamp.ino +++ b/examples/RTDB/Timestamp/Timestamp.ino @@ -112,9 +112,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 */); // Or use legacy authenticate method diff --git a/examples/Storage/FirebaseStorage/DeleteFile/DeleteFile.ino b/examples/Storage/FirebaseStorage/DeleteFile/DeleteFile.ino index 377a3f5f1..d9adf76e0 100644 --- a/examples/Storage/FirebaseStorage/DeleteFile/DeleteFile.ino +++ b/examples/Storage/FirebaseStorage/DeleteFile/DeleteFile.ino @@ -103,9 +103,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); diff --git a/examples/Storage/FirebaseStorage/DownloadFile/DownloadFile.ino b/examples/Storage/FirebaseStorage/DownloadFile/DownloadFile.ino index 59bdfacdb..e3b66bb7a 100644 --- a/examples/Storage/FirebaseStorage/DownloadFile/DownloadFile.ino +++ b/examples/Storage/FirebaseStorage/DownloadFile/DownloadFile.ino @@ -109,9 +109,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 */); /* Assign download buffer size in byte */ diff --git a/examples/Storage/FirebaseStorage/DownloadFileOTA/DownloadFileOTA.ino b/examples/Storage/FirebaseStorage/DownloadFileOTA/DownloadFileOTA.ino index 871ccb1e2..631a2b7d6 100644 --- a/examples/Storage/FirebaseStorage/DownloadFileOTA/DownloadFileOTA.ino +++ b/examples/Storage/FirebaseStorage/DownloadFileOTA/DownloadFileOTA.ino @@ -103,9 +103,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 */); /* Assign download buffer size in byte */ diff --git a/examples/Storage/FirebaseStorage/ListFiles/ListFiles.ino b/examples/Storage/FirebaseStorage/ListFiles/ListFiles.ino index 6cad10a8f..7d5c4306f 100644 --- a/examples/Storage/FirebaseStorage/ListFiles/ListFiles.ino +++ b/examples/Storage/FirebaseStorage/ListFiles/ListFiles.ino @@ -103,9 +103,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); diff --git a/examples/Storage/FirebaseStorage/Metadata/Metadata.ino b/examples/Storage/FirebaseStorage/Metadata/Metadata.ino index 5df0c21f4..538cb4631 100644 --- a/examples/Storage/FirebaseStorage/Metadata/Metadata.ino +++ b/examples/Storage/FirebaseStorage/Metadata/Metadata.ino @@ -103,9 +103,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); diff --git a/examples/Storage/FirebaseStorage/UploadByteArrayMemory/UploadByteArrayMemory.ino b/examples/Storage/FirebaseStorage/UploadByteArrayMemory/UploadByteArrayMemory.ino index 296891a8e..365fef527 100644 --- a/examples/Storage/FirebaseStorage/UploadByteArrayMemory/UploadByteArrayMemory.ino +++ b/examples/Storage/FirebaseStorage/UploadByteArrayMemory/UploadByteArrayMemory.ino @@ -103,9 +103,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 */); /* Assign upload buffer size in byte */ diff --git a/examples/Storage/FirebaseStorage/UploadFile/UploadFile.ino b/examples/Storage/FirebaseStorage/UploadFile/UploadFile.ino index 637776611..1694cae99 100644 --- a/examples/Storage/FirebaseStorage/UploadFile/UploadFile.ino +++ b/examples/Storage/FirebaseStorage/UploadFile/UploadFile.ino @@ -110,9 +110,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); diff --git a/examples/Storage/GoogleCloudStorage/DeleteFile/DeleteFile.ino b/examples/Storage/GoogleCloudStorage/DeleteFile/DeleteFile.ino index 2212b9cf5..8ee90bea4 100644 --- a/examples/Storage/GoogleCloudStorage/DeleteFile/DeleteFile.ino +++ b/examples/Storage/GoogleCloudStorage/DeleteFile/DeleteFile.ino @@ -100,9 +100,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); diff --git a/examples/Storage/GoogleCloudStorage/DownloadFile/DownloadFile.ino b/examples/Storage/GoogleCloudStorage/DownloadFile/DownloadFile.ino index 57f2e9c95..bb95c8436 100644 --- a/examples/Storage/GoogleCloudStorage/DownloadFile/DownloadFile.ino +++ b/examples/Storage/GoogleCloudStorage/DownloadFile/DownloadFile.ino @@ -106,9 +106,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 */); /* Assign download buffer size in byte */ diff --git a/examples/Storage/GoogleCloudStorage/DownloadFileOTA/DownloadFileOTA.ino b/examples/Storage/GoogleCloudStorage/DownloadFileOTA/DownloadFileOTA.ino index b81a2a323..af6431b1c 100644 --- a/examples/Storage/GoogleCloudStorage/DownloadFileOTA/DownloadFileOTA.ino +++ b/examples/Storage/GoogleCloudStorage/DownloadFileOTA/DownloadFileOTA.ino @@ -99,9 +99,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 */); /* Assign download buffer size in byte */ diff --git a/examples/Storage/GoogleCloudStorage/ListFiles/ListFiles.ino b/examples/Storage/GoogleCloudStorage/ListFiles/ListFiles.ino index 13ee317fb..ec45300da 100644 --- a/examples/Storage/GoogleCloudStorage/ListFiles/ListFiles.ino +++ b/examples/Storage/GoogleCloudStorage/ListFiles/ListFiles.ino @@ -100,9 +100,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); diff --git a/examples/Storage/GoogleCloudStorage/Metadata/Metadata.ino b/examples/Storage/GoogleCloudStorage/Metadata/Metadata.ino index af0e5757e..f9a783943 100644 --- a/examples/Storage/GoogleCloudStorage/Metadata/Metadata.ino +++ b/examples/Storage/GoogleCloudStorage/Metadata/Metadata.ino @@ -100,9 +100,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); diff --git a/examples/Storage/GoogleCloudStorage/UploadFile/UploadFile.ino b/examples/Storage/GoogleCloudStorage/UploadFile/UploadFile.ino index 3d9d4494f..879b88582 100644 --- a/examples/Storage/GoogleCloudStorage/UploadFile/UploadFile.ino +++ b/examples/Storage/GoogleCloudStorage/UploadFile/UploadFile.ino @@ -115,9 +115,10 @@ void setup() config.gcs.upload_buffer_size = 2048; // 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); diff --git a/keywords.txt b/keywords.txt index 882d459fb..fd6e65e5c 100644 --- a/keywords.txt +++ b/keywords.txt @@ -49,7 +49,7 @@ isTokenExpired KEYWORD2 refreshToken KEYWORD2 reset KEYWORD2 deleteUser KEYWORD2 -reconnectWiFi KEYWORD2 +reconnectNetwork KEYWORD2 setFloatDigits KEYWORD2 setDoubleDigits KEYWORD2 setReadTimeout KEYWORD2 diff --git a/library.json b/library.json index d2fae0313..aeb2662bd 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "Firebase Arduino Client Library for ESP8266 and ESP32", - "version": "4.4.5", + "version": "4.4.6", "keywords": "communication, REST, esp32, esp8266, arduino", "description": "The library supports Firebase products e.g. Realtime database, Cloud Firestore database, Firebase Storage and Google Cloud Storage, Cloud Functions for Firebase and Cloud Messaging. The library also supported other Arduino devices using Clients interfaces e.g. WiFiClient, EthernetClient, and GSMClient.", "repository": { diff --git a/library.properties b/library.properties index c5bd44a39..8b7bc5374 100644 --- a/library.properties +++ b/library.properties @@ -1,6 +1,6 @@ name=Firebase Arduino Client Library for ESP8266 and ESP32 -version=4.4.5 +version=4.4.6 author=Mobizt diff --git a/src/FB_Const.h b/src/FB_Const.h index 0391f6bd9..f7110d96c 100644 --- a/src/FB_Const.h +++ b/src/FB_Const.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif @@ -80,8 +80,8 @@ #define MAX_REDIRECT 5 -#define MIN_WIFI_RECONNECT_TIMEOUT 10 * 1000 -#define MAX_WIFI_RECONNECT_TIMEOUT 5 * 60 * 1000 +#define MIN_NET_RECONNECT_TIMEOUT 10 * 1000 +#define MAX_NET_RECONNECT_TIMEOUT 5 * 60 * 1000 #define MIN_SOCKET_CONN_TIMEOUT 1 * 1000 #define DEFAULT_SOCKET_CONN_TIMEOUT 10 * 1000 @@ -1086,7 +1086,7 @@ struct firebase_cfg_int_t bool fb_rtoken_requested = false; uint8_t fb_stream_idx = 0; - bool fb_reconnect_wifi = false; + bool fb_reconnect_network = false; unsigned long fb_last_reconnect_millis = 0; bool net_once_connected = false; unsigned long fb_last_jwt_begin_step_millis = 0; @@ -1297,8 +1297,11 @@ typedef void (*TokenStatusCallback)(TokenInfo); struct firebase_client_timeout_t { - // WiFi reconnect timeout (interval) in ms (10 sec - 5 min) when WiFi disconnected. - uint16_t wifiReconnect = MIN_WIFI_RECONNECT_TIMEOUT; + // Network reconnect timeout (interval) in ms (10 sec - 5 min) when network or WiFi disconnected. + uint16_t networkReconnect = MIN_NET_RECONNECT_TIMEOUT; + + // Deprecated, please use networkReconnect instead + uint16_t wifiReconnect = 0; // Socket connection and ssl handshake timeout in ms (1 sec - 1 min). unsigned long socketConnection = DEFAULT_SOCKET_CONN_TIMEOUT; diff --git a/src/FB_Error.h b/src/FB_Error.h index 29afefab3..ea6d266b0 100644 --- a/src/FB_Error.h +++ b/src/FB_Error.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif diff --git a/src/FB_Network.h b/src/FB_Network.h index c813d222c..9c050c9d2 100644 --- a/src/FB_Network.h +++ b/src/FB_Network.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif diff --git a/src/FB_Utils.h b/src/FB_Utils.h index 27653eacd..13a3dc99f 100644 --- a/src/FB_Utils.h +++ b/src/FB_Utils.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif diff --git a/src/Firebase.cpp b/src/Firebase.cpp index 5b9de5086..c88cb2b6d 100644 --- a/src/Firebase.cpp +++ b/src/Firebase.cpp @@ -1,12 +1,12 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif /** - * The Firebase class, Firebase.cpp v1.2.7 + * The Firebase class, Firebase.cpp v1.2.8 * - * Created September 5, 2023 + * Created September 13, 2023 * * The MIT License (MIT) * Copyright (c) 2023 K. Suwatchai (Mobizt) @@ -309,7 +309,7 @@ void FIREBASE_CLASS::init(FirebaseConfig *config, FirebaseAuth *auth) if (!this->auth) this->auth = new FirebaseAuth(); - Core.internal.fb_reconnect_wifi = Core.autoReconnectWiFi; + Core.internal.fb_reconnect_network = Core.autoReconnectNetwork; config->signer.lastReqMillis = 0; @@ -321,12 +321,17 @@ void FIREBASE_CLASS::init(FirebaseConfig *config, FirebaseAuth *auth) config->signer.tokens.error.message.clear(); } -void FIREBASE_CLASS::reconnectWiFi(bool reconnect) +void FIREBASE_CLASS::reconnectNetwork(bool reconnect) { #if defined(FIREBASE_WIFI_IS_AVAILABLE) && (defined(ESP32) || defined(ESP8266)) WiFi.setAutoReconnect(reconnect); #endif - Core.setAutoReconnectWiFi(reconnect); + Core.setAutoReconnectNetwork(reconnect); +} + +void FIREBASE_CLASS::reconnectWiFi(bool reconnect) +{ + reconnectNetwork(reconnect); } time_t FIREBASE_CLASS::getCurrentTime() @@ -417,8 +422,6 @@ bool FIREBASE_CLASS::setSystemTime(time_t ts) return Core.setTime(ts); } - FIREBASE_CLASS Firebase = FIREBASE_CLASS(); - #endif /* Firebase_CPP */ \ No newline at end of file diff --git a/src/Firebase.h b/src/Firebase.h index a49d2ea3f..4d9d60e68 100644 --- a/src/Firebase.h +++ b/src/Firebase.h @@ -1,12 +1,12 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif /** - * The Firebase class, Firebase.h v1.2.7 + * The Firebase class, Firebase.h v1.2.8 * - * Created September 5, 2023 + * Created September 13, 2023 * * The MIT License (MIT) * Copyright (c) 2023 K. Suwatchai (Mobizt) @@ -316,10 +316,13 @@ class FIREBASE_CLASS template bool sendResetPassword(FirebaseConfig *config, T email) { return mSendResetPassword(config, toStringPtr(email)); } - /** Reconnect WiFi if lost connection. + /** Reconnect network if lost connection. * * @param reconnect The boolean to set/unset WiFi AP reconnection. */ + void reconnectNetwork(bool reconnect); + + /* Deprecated, use reconnectNetwork instead. */ void reconnectWiFi(bool reconnect); /** Get currently used auth token string. @@ -2479,7 +2482,10 @@ class FIREBASE_CLASS #endif // RTDB #if defined(ENABLE_FCM) || defined(FIREBASE_ENABLE_FCM) - bool sendMessage(FirebaseData &fbdo, uint16_t index){ return false; } + bool sendMessage(FirebaseData &fbdo, uint16_t index) + { + return false; + } bool broadcastMessage(FirebaseData &fbdo) { return false; } bool sendTopic(FirebaseData &fbdo) { return false; } #endif // FCM diff --git a/src/FirebaseFS.h b/src/FirebaseFS.h index c05412288..42d7a55e3 100644 --- a/src/FirebaseFS.h +++ b/src/FirebaseFS.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif diff --git a/src/core/FirebaseCore.cpp b/src/core/FirebaseCore.cpp index 47eb98540..0ae5b41b2 100644 --- a/src/core/FirebaseCore.cpp +++ b/src/core/FirebaseCore.cpp @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif @@ -1581,9 +1581,9 @@ bool FirebaseCore::deleteIdToken(MB_StringPtr idToken) return true; } -void FirebaseCore::setAutoReconnectWiFi(bool reconnect) +void FirebaseCore::setAutoReconnectNetwork(bool reconnect) { - autoReconnectWiFi = reconnect; + autoReconnectNetwork = reconnect; } void FirebaseCore::setTCPClient(Firebase_TCP_Client *tcpClient) @@ -1660,9 +1660,12 @@ bool FirebaseCore::reconnect(Firebase_TCP_Client *client, firebase_session_info_ session->response.code = FIREBASE_ERROR_TCP_ERROR_CONNECTION_LOST; } + if (config && config->timeout.wifiReconnect > 0) + config->timeout.networkReconnect = config->timeout.wifiReconnect; + resumeNetwork(client, config ? internal.net_once_connected : net_once_connected, config ? internal.fb_last_reconnect_millis : last_reconnect_millis, - config ? config->timeout.wifiReconnect : wifi_reconnect_tmo); + config ? config->timeout.networkReconnect : net_reconnect_tmo); networkStatus = client->networkReady(); } @@ -1684,16 +1687,16 @@ bool FirebaseCore::reconnect(Firebase_TCP_Client *client, firebase_session_info_ return networkStatus; } -void FirebaseCore::resumeNetwork(Firebase_TCP_Client *client, bool &net_once_connected, unsigned long &last_reconnect_millis, uint16_t &wifi_reconnect_tmo) +void FirebaseCore::resumeNetwork(Firebase_TCP_Client *client, bool &net_once_connected, unsigned long &last_reconnect_millis, uint16_t &net_reconnect_tmo) { - if (autoReconnectWiFi || !net_once_connected) + if (autoReconnectNetwork || !net_once_connected) { - if (wifi_reconnect_tmo < MIN_WIFI_RECONNECT_TIMEOUT || - wifi_reconnect_tmo > MAX_WIFI_RECONNECT_TIMEOUT) - wifi_reconnect_tmo = MIN_WIFI_RECONNECT_TIMEOUT; + if (net_reconnect_tmo < MIN_NET_RECONNECT_TIMEOUT || + net_reconnect_tmo > MAX_NET_RECONNECT_TIMEOUT) + net_reconnect_tmo = MIN_NET_RECONNECT_TIMEOUT; - if (millis() - last_reconnect_millis > wifi_reconnect_tmo) + if (millis() - last_reconnect_millis > net_reconnect_tmo) { client->networkReconnect(); last_reconnect_millis = millis(); diff --git a/src/core/FirebaseCore.h b/src/core/FirebaseCore.h index 430932f88..c1fd87f61 100644 --- a/src/core/FirebaseCore.h +++ b/src/core/FirebaseCore.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif @@ -95,12 +95,12 @@ class FirebaseCore FirebaseJsonData *resultPtr = nullptr; int response_code = 0; time_t ts = 0; - bool autoReconnectWiFi = false; + bool autoReconnectNetwork = false; // Used as local vars in reconnect unsigned long last_reconnect_millis = 0; bool net_once_connected = false; - uint16_t wifi_reconnect_tmo = MIN_WIFI_RECONNECT_TIMEOUT; + uint16_t net_reconnect_tmo = MIN_NET_RECONNECT_TIMEOUT; volatile bool networkStatus = false; bool networkChecking = false; @@ -209,7 +209,7 @@ class FirebaseCore /* resume network connection */ bool reconnect(Firebase_TCP_Client *client, firebase_session_info_t *session, unsigned long dataTime = 0); bool reconnect(); - void resumeNetwork(Firebase_TCP_Client *client, bool &net_once_connected, unsigned long &last_reconnect_millis, uint16_t &wifi_reconnect_tmo); + void resumeNetwork(Firebase_TCP_Client *client, bool &net_once_connected, unsigned long &last_reconnect_millis, uint16_t &net_reconnect_tmo); /* close TCP session */ void closeSession(Firebase_TCP_Client *client, firebase_session_info_t *session); /* set external Client */ @@ -221,7 +221,7 @@ class FirebaseCore /* set the system time */ bool setTime(time_t ts); /* set the WiFi (or network) auto reconnection option */ - void setAutoReconnectWiFi(bool reconnect); + void setAutoReconnectNetwork(bool reconnect); #if defined(ESP8266) void set_scheduled_callback(callback_function_t callback) diff --git a/src/core/Firebase_Client_Version.h b/src/core/Firebase_Client_Version.h index 353e41115..93dc02b6d 100644 --- a/src/core/Firebase_Client_Version.h +++ b/src/core/Firebase_Client_Version.h @@ -1,6 +1,6 @@ #ifndef FIREBASE_CLIENT_VERSION -#define FIREBASE_CLIENT_VERSION "4.4.4" -#define FIREBASE_CLIENT_VERSION_NUM 40405 +#define FIREBASE_CLIENT_VERSION "4.4.6" +#define FIREBASE_CLIENT_VERSION_NUM 40406 /* The inconsistent file version checking to prevent mixed versions compilation. */ #define FIREBASE_CLIENT_VERSION_CHECK(ver) (ver == FIREBASE_CLIENT_VERSION_NUM) diff --git a/src/firestore/FB_Firestore.cpp b/src/firestore/FB_Firestore.cpp index b446abcad..9592d7a3c 100644 --- a/src/firestore/FB_Firestore.cpp +++ b/src/firestore/FB_Firestore.cpp @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif diff --git a/src/firestore/FB_Firestore.h b/src/firestore/FB_Firestore.h index 8b2125352..a3d820aea 100644 --- a/src/firestore/FB_Firestore.h +++ b/src/firestore/FB_Firestore.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif diff --git a/src/functions/FB_Functions.cpp b/src/functions/FB_Functions.cpp index bddda3929..65c4f2760 100644 --- a/src/functions/FB_Functions.cpp +++ b/src/functions/FB_Functions.cpp @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif diff --git a/src/functions/FB_Functions.h b/src/functions/FB_Functions.h index 5292d5247..401e01f1b 100644 --- a/src/functions/FB_Functions.h +++ b/src/functions/FB_Functions.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif diff --git a/src/functions/FunctionsConfig.cpp b/src/functions/FunctionsConfig.cpp index 381d74a21..7bc23298a 100644 --- a/src/functions/FunctionsConfig.cpp +++ b/src/functions/FunctionsConfig.cpp @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif diff --git a/src/functions/FunctionsConfig.h b/src/functions/FunctionsConfig.h index 44506816a..c91ae3361 100644 --- a/src/functions/FunctionsConfig.h +++ b/src/functions/FunctionsConfig.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif diff --git a/src/functions/PocicyBuilder.cpp b/src/functions/PocicyBuilder.cpp index bbecd57bb..f85864d81 100644 --- a/src/functions/PocicyBuilder.cpp +++ b/src/functions/PocicyBuilder.cpp @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif diff --git a/src/functions/PolicyBuilder.h b/src/functions/PolicyBuilder.h index a3542c3de..69da74643 100644 --- a/src/functions/PolicyBuilder.h +++ b/src/functions/PolicyBuilder.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif diff --git a/src/gcs/GCS.cpp b/src/gcs/GCS.cpp index a0d87133e..7805cbee9 100644 --- a/src/gcs/GCS.cpp +++ b/src/gcs/GCS.cpp @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif diff --git a/src/gcs/GCS.h b/src/gcs/GCS.h index eaca3254f..f70387d17 100644 --- a/src/gcs/GCS.h +++ b/src/gcs/GCS.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif diff --git a/src/message/FCM.cpp b/src/message/FCM.cpp index ea4cc2090..2a8f655db 100644 --- a/src/message/FCM.cpp +++ b/src/message/FCM.cpp @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif diff --git a/src/message/FCM.h b/src/message/FCM.h index 86d02cf8a..a691ef6a5 100644 --- a/src/message/FCM.h +++ b/src/message/FCM.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif diff --git a/src/message/LFCM.h b/src/message/LFCM.h index 552e84f98..99f498227 100644 --- a/src/message/LFCM.h +++ b/src/message/LFCM.h @@ -1,6 +1,6 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif diff --git a/src/rtdb/FB_RTDB.cpp b/src/rtdb/FB_RTDB.cpp index a5ba496ea..2f5b7a3fa 100644 --- a/src/rtdb/FB_RTDB.cpp +++ b/src/rtdb/FB_RTDB.cpp @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif diff --git a/src/rtdb/FB_RTDB.h b/src/rtdb/FB_RTDB.h index eb7a9a0a1..d5690ac0e 100644 --- a/src/rtdb/FB_RTDB.h +++ b/src/rtdb/FB_RTDB.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif diff --git a/src/rtdb/QueryFilter.cpp b/src/rtdb/QueryFilter.cpp index 82a15b190..36ff0d73e 100644 --- a/src/rtdb/QueryFilter.cpp +++ b/src/rtdb/QueryFilter.cpp @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif diff --git a/src/rtdb/QueryFilter.h b/src/rtdb/QueryFilter.h index 56d2faff5..9a02d67ea 100644 --- a/src/rtdb/QueryFilter.h +++ b/src/rtdb/QueryFilter.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif diff --git a/src/rtdb/QueueInfo.cpp b/src/rtdb/QueueInfo.cpp index e7b0c8cea..c682b82a6 100644 --- a/src/rtdb/QueueInfo.cpp +++ b/src/rtdb/QueueInfo.cpp @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif diff --git a/src/rtdb/QueueInfo.h b/src/rtdb/QueueInfo.h index 36c0dfd0f..351c1593e 100644 --- a/src/rtdb/QueueInfo.h +++ b/src/rtdb/QueueInfo.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif diff --git a/src/rtdb/QueueManager.cpp b/src/rtdb/QueueManager.cpp index 8780186d1..d5931c4cf 100644 --- a/src/rtdb/QueueManager.cpp +++ b/src/rtdb/QueueManager.cpp @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif diff --git a/src/rtdb/QueueManager.h b/src/rtdb/QueueManager.h index c3e6b8a3f..5c33e4426 100644 --- a/src/rtdb/QueueManager.h +++ b/src/rtdb/QueueManager.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif diff --git a/src/rtdb/stream/FB_MP_Stream.cpp b/src/rtdb/stream/FB_MP_Stream.cpp index eef4b847e..b406b6daf 100644 --- a/src/rtdb/stream/FB_MP_Stream.cpp +++ b/src/rtdb/stream/FB_MP_Stream.cpp @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif diff --git a/src/rtdb/stream/FB_MP_Stream.h b/src/rtdb/stream/FB_MP_Stream.h index 41d257dd2..25947f56f 100644 --- a/src/rtdb/stream/FB_MP_Stream.h +++ b/src/rtdb/stream/FB_MP_Stream.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif diff --git a/src/rtdb/stream/FB_Stream.cpp b/src/rtdb/stream/FB_Stream.cpp index 35f3c112e..f1248bd67 100644 --- a/src/rtdb/stream/FB_Stream.cpp +++ b/src/rtdb/stream/FB_Stream.cpp @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif diff --git a/src/rtdb/stream/FB_Stream.h b/src/rtdb/stream/FB_Stream.h index 540d9d785..8f828a823 100644 --- a/src/rtdb/stream/FB_Stream.h +++ b/src/rtdb/stream/FB_Stream.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif diff --git a/src/session/FB_Session.cpp b/src/session/FB_Session.cpp index 325dfa59d..89570a633 100644 --- a/src/session/FB_Session.cpp +++ b/src/session/FB_Session.cpp @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif diff --git a/src/session/FB_Session.h b/src/session/FB_Session.h index 8769c6d93..fd3d55e2c 100644 --- a/src/session/FB_Session.h +++ b/src/session/FB_Session.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif diff --git a/src/storage/FCS.cpp b/src/storage/FCS.cpp index 9283d19d5..5018923b8 100644 --- a/src/storage/FCS.cpp +++ b/src/storage/FCS.cpp @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif diff --git a/src/storage/FCS.h b/src/storage/FCS.h index fb64d881f..32d954d8a 100644 --- a/src/storage/FCS.h +++ b/src/storage/FCS.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40405) +#if !FIREBASE_CLIENT_VERSION_CHECK(40406) #error "Mixed versions compilation." #endif