Skip to content

Commit

Permalink
Update core.
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed Sep 10, 2023
1 parent 3dbb933 commit 5ec6ddd
Show file tree
Hide file tree
Showing 165 changed files with 4,012 additions and 4,325 deletions.
265 changes: 114 additions & 151 deletions README.md

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions examples/Authentications/LegacyTokenAuthen/LegacyTokenAuthen.ino
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
#include <WiFi.h>
#elif defined(ESP8266)
#include <ESP8266WiFi.h>
#elif __has_include(<WiFiNINA.h>)
#include <WiFiNINA.h>
#elif __has_include(<WiFi101.h>)
#include <WiFi101.h>
#elif __has_include(<WiFiS3.h>)
#include <WiFiS3.h>
#endif

#include <Firebase_ESP_Client.h>
Expand Down Expand Up @@ -94,8 +100,12 @@ void setup()
config.wifi.addAP(WIFI_SSID, WIFI_PASSWORD);
#endif

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

// required for large file data, increase Rx size as needed.
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 */
Firebase.begin(&config, &auth);

Expand Down
11 changes: 11 additions & 0 deletions examples/Authentications/ReAuthenticate/ReAuthenticate.ino
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
#include <WiFi.h>
#elif defined(ESP8266)
#include <ESP8266WiFi.h>
#elif __has_include(<WiFiNINA.h>)
#include <WiFiNINA.h>
#elif __has_include(<WiFi101.h>)
#include <WiFi101.h>
#elif __has_include(<WiFiS3.h>)
#include <WiFiS3.h>
#endif

#include <Firebase_ESP_Client.h>
Expand Down Expand Up @@ -128,7 +134,12 @@ void setup()
config.wifi.addAP(WIFI_SSID, WIFI_PASSWORD);
#endif

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

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

fbdo.setResponseSize(4096);

/* Assign the callback function for the long running token generation task */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@
#include <WiFi.h>
#elif defined(ESP8266)
#include <ESP8266WiFi.h>
#elif __has_include(<WiFiNINA.h>)
#include <WiFiNINA.h>
#elif __has_include(<WiFi101.h>)
#include <WiFi101.h>
#elif __has_include(<WiFiS3.h>)
#include <WiFiS3.h>
#endif

#include <Firebase_ESP_Client.h>
Expand Down Expand Up @@ -128,11 +134,15 @@ void setup()
*/
// config.signer.tokens.scope = "Google Scope 1 Url, Google Scope 2 Url,..";

Firebase.reconnectWiFi(true);

/* Assign the callback function for the long running token generation task */
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);

// required for large file data, increase Rx size as needed.
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
* The internal NTP server time acquisition
* of token generation process will be skipped,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
#include <WiFi.h>
#elif defined(ESP8266)
#include <ESP8266WiFi.h>
#elif __has_include(<WiFiNINA.h>)
#include <WiFiNINA.h>
#elif __has_include(<WiFi101.h>)
#include <WiFi101.h>
#elif __has_include(<WiFiS3.h>)
#include <WiFiS3.h>
#endif

#include <Firebase_ESP_Client.h>
Expand Down Expand Up @@ -99,7 +105,6 @@ void setup()
Serial.println(WiFi.localIP());
Serial.println();


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

/* Assign the API key (required) */
Expand All @@ -115,8 +120,12 @@ void setup()
config.wifi.addAP(WIFI_SSID, WIFI_PASSWORD);
#endif

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

// required for large file data, increase Rx size as needed.
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
* with blank email and password.
*
Expand Down
11 changes: 11 additions & 0 deletions examples/Authentications/SignInAsUser/CustomToken/CustomToken.ino
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
#include <WiFi.h>
#elif defined(ESP8266)
#include <ESP8266WiFi.h>
#elif __has_include(<WiFiNINA.h>)
#include <WiFiNINA.h>
#elif __has_include(<WiFi101.h>)
#include <WiFi101.h>
#elif __has_include(<WiFiS3.h>)
#include <WiFiS3.h>
#endif

#include <Firebase_ESP_Client.h>
Expand Down Expand Up @@ -207,7 +213,12 @@ void setup()
config.wifi.addAP(WIFI_SSID, WIFI_PASSWORD);
#endif

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

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

fbdo.setResponseSize(4096);

/* path for user data is now "/UsersData/Node1" */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
#include <WiFi.h>
#elif defined(ESP8266)
#include <ESP8266WiFi.h>
#elif __has_include(<WiFiNINA.h>)
#include <WiFiNINA.h>
#elif __has_include(<WiFi101.h>)
#include <WiFi101.h>
#elif __has_include(<WiFiS3.h>)
#include <WiFiS3.h>
#endif

#include <Firebase_ESP_Client.h>
Expand Down Expand Up @@ -156,7 +162,12 @@ void setup()
config.wifi.addAP(WIFI_SSID, WIFI_PASSWORD);
#endif

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

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

fbdo.setResponseSize(4096);

/* path for user data is now "/UsersData/Node1" */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@
#include <WiFi.h>
#elif defined(ESP8266)
#include <ESP8266WiFi.h>
#elif __has_include(<WiFiNINA.h>)
#include <WiFiNINA.h>
#elif __has_include(<WiFi101.h>)
#include <WiFi101.h>
#elif __has_include(<WiFiS3.h>)
#include <WiFiS3.h>
#endif

#include <Firebase_ESP_Client.h>
Expand Down Expand Up @@ -133,7 +139,12 @@ void setup()
config.wifi.addAP(WIFI_SSID, WIFI_PASSWORD);
#endif

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

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

fbdo.setResponseSize(4096);

String base_path = "/UsersData/";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
#include <WiFi.h>
#elif defined(ESP8266)
#include <ESP8266WiFi.h>
#elif __has_include(<WiFiNINA.h>)
#include <WiFiNINA.h>
#elif __has_include(<WiFi101.h>)
#include <WiFi101.h>
#elif __has_include(<WiFiS3.h>)
#include <WiFiS3.h>
#endif

#include <Firebase_ESP_Client.h>
Expand Down Expand Up @@ -89,8 +95,12 @@ void setup()
config.wifi.addAP(WIFI_SSID, WIFI_PASSWORD);
#endif

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

// required for large file data, increase Rx size as needed.
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 */
config.token_status_callback = tokenStatusCallback; // see addons/TokenHelper.h

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
#include <WiFi.h>
#elif defined(ESP8266)
#include <ESP8266WiFi.h>
#elif __has_include(<WiFiNINA.h>)
#include <WiFiNINA.h>
#elif __has_include(<WiFi101.h>)
#include <WiFi101.h>
#elif __has_include(<WiFiS3.h>)
#include <WiFiS3.h>
#endif

#include <Firebase_ESP_Client.h>
Expand Down Expand Up @@ -104,8 +110,12 @@ void setup()
config.wifi.addAP(WIFI_SSID, WIFI_PASSWORD);
#endif

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

// required for large file data, increase Rx size as needed.
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 */
config.token_status_callback = tokenStatusCallback; // see addons/TokenHelper.h

Expand Down
10 changes: 10 additions & 0 deletions examples/Authentications/SignInWithIDToken/SignInWithIDToken.ino
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
#include <WiFi.h>
#elif defined(ESP8266)
#include <ESP8266WiFi.h>
#elif __has_include(<WiFiNINA.h>)
#include <WiFiNINA.h>
#elif __has_include(<WiFi101.h>)
#include <WiFi101.h>
#elif __has_include(<WiFiS3.h>)
#include <WiFiS3.h>
#endif

#include <Firebase_ESP_Client.h>
Expand Down Expand Up @@ -104,8 +110,12 @@ void setup()
config.wifi.addAP(WIFI_SSID, WIFI_PASSWORD);
#endif

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

// required for large file data, increase Rx size as needed.
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 */
config.token_status_callback = tokenStatusCallback; // see addons/TokenHelper.h

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
#include <WiFi.h>
#elif defined(ESP8266)
#include <ESP8266WiFi.h>
#elif __has_include(<WiFiNINA.h>)
#include <WiFiNINA.h>
#elif __has_include(<WiFi101.h>)
#include <WiFi101.h>
#elif __has_include(<WiFiS3.h>)
#include <WiFiS3.h>
#endif

#include <Firebase_ESP_Client.h>
Expand Down Expand Up @@ -89,8 +95,12 @@ void setup()
config.wifi.addAP(WIFI_SSID, WIFI_PASSWORD);
#endif

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

// required for large file data, increase Rx size as needed.
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 */
config.token_status_callback = tokenStatusCallback; // see addons/TokenHelper.h

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
#include <WiFi.h>
#elif defined(ESP8266)
#include <ESP8266WiFi.h>
#elif __has_include(<WiFiNINA.h>)
#include <WiFiNINA.h>
#elif __has_include(<WiFi101.h>)
#include <WiFi101.h>
#elif __has_include(<WiFiS3.h>)
#include <WiFiS3.h>
#endif

#include <Firebase_ESP_Client.h>
Expand Down Expand Up @@ -106,8 +112,12 @@ void setup()
config.wifi.addAP(WIFI_SSID, WIFI_PASSWORD);
#endif

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

// required for large file data, increase Rx size as needed.
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 */
config.token_status_callback = tokenStatusCallback; // see addons/TokenHelper.h

Expand Down
10 changes: 10 additions & 0 deletions examples/Authentications/TestMode/TestMode.ino
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
#include <WiFi.h>
#elif defined(ESP8266)
#include <ESP8266WiFi.h>
#elif __has_include(<WiFiNINA.h>)
#include <WiFiNINA.h>
#elif __has_include(<WiFi101.h>)
#include <WiFi101.h>
#elif __has_include(<WiFiS3.h>)
#include <WiFiS3.h>
#endif

#include <Firebase_ESP_Client.h>
Expand Down Expand Up @@ -105,8 +111,12 @@ void setup()
config.wifi.addAP(WIFI_SSID, WIFI_PASSWORD);
#endif

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

// required for large file data, increase Rx size as needed.
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 */
Firebase.begin(&config, &auth);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
#include <WiFi.h>
#elif defined(ESP8266)
#include <ESP8266WiFi.h>
#elif __has_include(<WiFiNINA.h>)
#include <WiFiNINA.h>
#elif __has_include(<WiFi101.h>)
#include <WiFi101.h>
#elif __has_include(<WiFiS3.h>)
#include <WiFiS3.h>
#endif

#include <Firebase_ESP_Client.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
#include <WiFi.h>
#elif defined(ESP8266)
#include <ESP8266WiFi.h>
#elif __has_include(<WiFiNINA.h>)
#include <WiFiNINA.h>
#elif __has_include(<WiFi101.h>)
#include <WiFi101.h>
#elif __has_include(<WiFiS3.h>)
#include <WiFiS3.h>
#endif

#include <Firebase_ESP_Client.h>
Expand Down Expand Up @@ -118,14 +124,16 @@ void setup()
config.wifi.addAP(WIFI_SSID, WIFI_PASSWORD);
#endif

Firebase.reconnectWiFi(true);

/* Assign the user sign in credentials */
auth.user.email = USER_EMAIL;
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);

// required for large file data, increase Rx size as needed.
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 */
config.token_status_callback = tokenStatusCallback; // see addons/TokenHelper.h

Expand Down
Loading

0 comments on commit 5ec6ddd

Please sign in to comment.