Skip to content

Commit

Permalink
Fix filesystem issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed Sep 14, 2023
1 parent 5a196ac commit 57be528
Show file tree
Hide file tree
Showing 91 changed files with 416 additions and 520 deletions.
1 change: 0 additions & 1 deletion .github/workflows/compile_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ jobs:
- "examples/DataFilter/DataFilter.ino"
- "examples/DataRetaining/DataRetaining.ino"
- "examples/ETag/ETag.ino"
- "examples/FastSend/FastSend.ino"
- "examples/File/Flash/Flash.ino"
- "examples/File/SD/SD.ino"
#- "examples/FireSense/AnalogRead/AnalogRead.ino"
Expand Down
238 changes: 118 additions & 120 deletions README.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,11 @@ void setup()
config.database_url = DATABASE_URL;
config.signer.tokens.legacy_token = DATABASE_SECRET;

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

// 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.
// Large data transmission may require larger RX buffer, otherwise connection issue or 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 */);

// The WiFi credentials are required for Pico W
Expand Down
3 changes: 2 additions & 1 deletion examples/Authentications/ReAuthenticate/ReAuthenticate.ino
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,11 @@ void setup()
/* Assign the RTDB URL */
config.database_url = DATABASE_URL;

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

// 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.
// Large data transmission may require larger RX buffer, otherwise connection issue or data read time out can be occurred.
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);

fbdo.setResponseSize(4096);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,11 @@ void setup()
*/
// config.signer.tokens.scope = "Google Scope 1 Url, Google Scope 2 Url,..";

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

// 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.
// Large data transmission may require larger RX buffer, otherwise connection issue or data read time out can be occurred.
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);

/* Assign the callback function for the long running token generation task */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,11 @@ void setup()
/* Assign the RTDB URL */
config.database_url = DATABASE_URL;

// Comment or pass false value when WiFi reconnection will control by your code or third party library e.g. WiFiManager
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 connection issue or 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 */);

// The WiFi credentials are required for Pico W
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,11 @@ void setup()
/* Assign the RTDB URL */
config.database_url = DATABASE_URL;

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

// 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.
// Large data transmission may require larger RX buffer, otherwise connection issue or data read time out can be occurred.
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);

fbdo.setResponseSize(4096);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,11 @@ void setup()
claims.add("admin", true);
auth.token.claims = claims.raw();

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

// 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.
// Large data transmission may require larger RX buffer, otherwise connection issue or data read time out can be occurred.
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);

fbdo.setResponseSize(4096);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,11 @@ void setup()
/* Assign the RTDB URL */
config.database_url = DATABASE_URL;

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

// 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.
// Large data transmission may require larger RX buffer, otherwise connection issue or data read time out can be occurred.
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);

fbdo.setResponseSize(4096);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,11 @@ void setup()
/* Assign the RTDB URL */
config.database_url = DATABASE_URL;

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

// 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.
// Large data transmission may require larger RX buffer, otherwise connection issue or data read time out can be occurred.
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);

/* Assign the callback function for the long running token generation task */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,11 @@ void setup()
/* Assign the RTDB URL */
config.database_url = DATABASE_URL;

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

// 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.
// Large data transmission may require larger RX buffer, otherwise connection issue or data read time out can be occurred.
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);

/* Assign the callback function for the long running token generation task */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,11 @@ void setup()
/* Assign the RTDB URL */
config.database_url = DATABASE_URL;

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

// 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.
// Large data transmission may require larger RX buffer, otherwise connection issue or data read time out can be occurred.
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);

/** To sign in as anonymous user, just sign up as anonymous user
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,11 @@ void setup()
/* Assign the RTDB URL */
config.database_url = DATABASE_URL;

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

// 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.
// Large data transmission may require larger RX buffer, otherwise connection issue or data read time out can be occurred.
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);

/* Assign the callback function for the long running token generation task */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,11 @@ void setup()
/* Assign the RTDB URL */
config.database_url = DATABASE_URL;

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

// 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.
// Large data transmission may require larger RX buffer, otherwise connection issue or data read time out can be occurred.
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);

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

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

// 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.
// Large data transmission may require larger RX buffer, otherwise connection issue or 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 */);

// The WiFi credentials are required for Pico W
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ void setup()
/* Assign the RTDB URL */
config.database_url = DATABASE_URL;

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

// The WiFi credentials are required for Pico W
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,11 @@ void setup()
/* Assign the RTDB URL */
config.database_url = DATABASE_URL;

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

// 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.
// Large data transmission may require larger RX buffer, otherwise connection issue or 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 user sign in credentials */
Expand Down
3 changes: 2 additions & 1 deletion examples/Authentications/UserManagement/Signup/Signup.ino
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,11 @@ void setup()
/* Assign the RTDB URL */
config.database_url = DATABASE_URL;

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

// 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.
// Large data transmission may require larger RX buffer, otherwise connection issue or data read time out can be occurred.
fbdo.setBSSLBufferSize(4096 /* Rx buffer size in bytes from 512 - 16384 */, 1024 /* Tx buffer size in bytes from 512 - 16384 */);

Serial.print("Sign up new user... ");
Expand Down
3 changes: 2 additions & 1 deletion examples/BackupRestore/Flash/Flash.ino
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,11 @@ void setup()
/* 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 e.g. WiFiManager
Firebase.reconnectNetwork(true);

// 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.
// Large data transmission may require larger RX buffer, otherwise connection issue or 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 */);

// The WiFi credentials are required for Pico W
Expand Down
3 changes: 2 additions & 1 deletion examples/BackupRestore/SD/SD.ino
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,11 @@ void setup()
/* 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 e.g. WiFiManager
Firebase.reconnectNetwork(true);

// 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.
// Large data transmission may require larger RX buffer, otherwise connection issue or 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 */);

// The WiFi credentials are required for Pico W
Expand Down
3 changes: 2 additions & 1 deletion examples/Basic/Basic.ino
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,11 @@ void setup()
/* 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 e.g. WiFiManager
Firebase.reconnectNetwork(true);

// 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.
// Large data transmission may require larger RX buffer, otherwise connection issue or 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 */);

// The WiFi credentials are required for Pico W
Expand Down
3 changes: 2 additions & 1 deletion examples/BasicCert/BasicCert.ino
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,11 @@ void setup()
// Or custom set the root certificate for each FirebaseData object
fbdo.setCert(rootCACert);

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

// 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.
// Large data transmission may require larger RX buffer, otherwise connection issue or 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 */);

// The WiFi credentials are required for Pico W
Expand Down
3 changes: 2 additions & 1 deletion examples/BasicEthernet/BasicEthernet.ino
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,11 @@ void setupFirebase()
/* 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 e.g. WiFiManager
Firebase.reconnectNetwork(true);

// 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.
// Large data transmission may require larger RX buffer, otherwise connection issue or 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 pointer to Ethernet module lwip interface */
Expand Down
3 changes: 2 additions & 1 deletion examples/Blob/Blob.ino
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,11 @@ 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 e.g. WiFiManager
Firebase.reconnectNetwork(true);

// 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.
// Large data transmission may require larger RX buffer, otherwise connection issue or 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
Expand Down
3 changes: 2 additions & 1 deletion examples/Blynk/Blynk.ino
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,11 @@ void setup()
/* 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 e.g. WiFiManager
Firebase.reconnectNetwork(true);

// 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.
// Large data transmission may require larger RX buffer, otherwise connection issue or 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 */);

// The WiFi credentials are required for Pico W
Expand Down
5 changes: 3 additions & 2 deletions examples/DataChangesListener/Callback/Callback.ino
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,11 @@ void setup()
/* 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 e.g. WiFiManager
Firebase.reconnectNetwork(true);

// 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.
// Large data transmission may require larger RX buffer, otherwise connection issue or 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 */);

// The WiFi credentials are required for Pico W
Expand Down Expand Up @@ -189,7 +190,7 @@ void loop()

// Firebase.ready() should be called repeatedly to handle authentication tasks.

#if defined(ARDUINO_RASPBERRY_PI_PICO_W)
#if !defined(ESP8266) && !defined(ESP32)
Firebase.runStream();
#endif

Expand Down
Loading

0 comments on commit 57be528

Please sign in to comment.