Skip to content

Commit

Permalink
Allows other Firebase calls inside the stream and multipath stream ca…
Browse files Browse the repository at this point in the history
…llback function.
  • Loading branch information
mobizt committed Apr 3, 2021
1 parent c595757 commit d7bca1e
Show file tree
Hide file tree
Showing 50 changed files with 192 additions and 167 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4390794.svg)](https://doi.org/10.5281/zenodo.4390794)


Google's Firebase Realtime Database Arduino Library for ESP8266 v 3.1.7
Google's Firebase Realtime Database Arduino Library for ESP8266 v 3.1.8


This library supports ESP8266 MCU from Espressif. The following are platforms in which libraries are also available.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Github: https://github.com/mobizt
*
* Copyright (c) 2020 mobizt
* Copyright (c) 2021 mobizt
*
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Github: https://github.com/mobizt
*
* Copyright (c) 2020 mobizt
* Copyright (c) 2021 mobizt
*
*/

Expand All @@ -33,7 +33,7 @@
/** 3. Define the API key
*
* The API key can be obtained since you created the project and set up
* the Authentication in Firebase conssole.
* the Authentication in Firebase console.
*
* You may need to enable the Identity provider at https://console.cloud.google.com/customer-identity/providers
* Select your project, click at ENABLE IDENTITY PLATFORM button.
Expand Down
6 changes: 3 additions & 3 deletions examples/Authentications/Custom_Token/Custom_Token.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Github: https://github.com/mobizt
*
* Copyright (c) 2020 mobizt
* Copyright (c) 2021 mobizt
*
*/

Expand Down Expand Up @@ -35,7 +35,7 @@
/** 3. Define the API key
*
* The API key can be obtained since you created the project and set up
* the Authentication in Firebase conssole.
* the Authentication in Firebase console.
*
* You may need to enable the Identity provider at https://console.cloud.google.com/customer-identity/providers
* Select your project, click at ENABLE IDENTITY PLATFORM button.
Expand Down Expand Up @@ -185,7 +185,7 @@ void setup()
* To modify the database rules in this exanple, we need the full access rights then
* using the database secret in prepareDatabaseRules function to sign in.
*
* If you database rules has been modified, plesse comment this code out.
* If you database rules has been modified, please comment this code out.
*
* The character $ is to make a wildcard variable (can be any name) represents any node key
* which located at some level in the rule structure and use as reference variable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Github: https://github.com/mobizt
*
* Copyright (c) 2020 mobizt
* Copyright (c) 2021 mobizt
*
*/

Expand Down Expand Up @@ -35,7 +35,7 @@
/** 3. Define the API key
*
* The API key can be obtained since you created the project and set up
* the Authentication in Firebase conssole.
* the Authentication in Firebase console.
*
* You may need to enable the Identity provider at https://console.cloud.google.com/customer-identity/providers
* Select your project, click at ENABLE IDENTITY PLATFORM button.
Expand Down Expand Up @@ -155,7 +155,7 @@ void setup()
* To modify the database rules in this exanple, we need the full access rights then
* using the database secret in prepareDatabaseRules function to sign in.
*
* If you database rules has been modified, plesse comment this code out.
* If you database rules has been modified, please comment this code out.
*
* The character $ is to make a wildcard variable (can be any name) represents any node key
* which located at some level in the rule structure and use as reference variable
Expand Down Expand Up @@ -268,7 +268,7 @@ void prepareDatabaseRules(const char *path, const char *var, const char *readVal
Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH);

Serial.println("------------------------------------");
Serial.println("Read database ruless...");
Serial.println("Read database rules...");
if (Firebase.getRules(fbdo))
{
FirebaseJsonData result;
Expand Down
10 changes: 5 additions & 5 deletions examples/Authentications/Email_Password/Email_Password.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Github: https://github.com/mobizt
*
* Copyright (c) 2020 mobizt
* Copyright (c) 2021 mobizt
*
*/

Expand Down Expand Up @@ -36,7 +36,7 @@
/** 3. Define the API key
*
* The API key (required) can be obtained since you created the project and set up
* the Authentication in Firebase conssole. Then you will get the API key from
* the Authentication in Firebase console. Then you will get the API key from
* Firebase project Web API key in Project settings, on General tab should show the
* Web API Key.
*
Expand All @@ -47,7 +47,7 @@
*/
#define API_KEY "WEB_API_KEY"

/* 4. Define the user Email and password that alreadey registerd or added in your project */
/* 4. Define the user Email and password that alreaey registerd or added in your project */
#define USER_EMAIL "USER_EMAIL"
#define USER_PASSWORD "USER_PASSWORD"

Expand Down Expand Up @@ -134,7 +134,7 @@ void setup()
* which located at some level in the rule structure and use as reference variable
* in .read, .write and .validate rules
*
* If you database rules has been modified, plesse comment this code out
* If you database rules has been modified, please comment this code out
*/
String var = "$user";
String val = "(auth.uid === $user)";
Expand Down Expand Up @@ -219,7 +219,7 @@ void prepareDatabaseRules(const char *path, const char *var, const char *readVal
Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH);

Serial.println("------------------------------------");
Serial.println("Read database ruless...");
Serial.println("Read database rules...");
if (Firebase.getRules(fbdo))
{
FirebaseJsonData result;
Expand Down
2 changes: 1 addition & 1 deletion examples/Authentications/Legacy_Token/Legacy_Token.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Github: https://github.com/mobizt
*
* Copyright (c) 2020 mobizt
* Copyright (c) 2021 mobizt
*
*/

Expand Down
4 changes: 2 additions & 2 deletions examples/Authentications/Reset_Password/Reset_Password.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Github: https://github.com/mobizt
*
* Copyright (c) 2020 mobizt
* Copyright (c) 2021 mobizt
*
*/

Expand All @@ -27,7 +27,7 @@
/** 3. Define the API key
*
* The API key can be obtained since you created the project and set up
* the Authentication in Firebase conssole.
* the Authentication in Firebase console.
*
* You may need to enable the Identity provider at https://console.cloud.google.com/customer-identity/providers
* Select your project, click at ENABLE IDENTITY PLATFORM button.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Github: https://github.com/mobizt
*
* Copyright (c) 2020 mobizt
* Copyright (c) 2021 mobizt
*
*/

Expand All @@ -32,7 +32,7 @@
/** 3. Define the API key
*
* The API key can be obtained since you created the project and set up
* the Authentication in Firebase conssole.
* the Authentication in Firebase console.
*
* You may need to enable the Identity provider at https://console.cloud.google.com/customer-identity/providers
* Select your project, click at ENABLE IDENTITY PLATFORM button.
Expand All @@ -41,7 +41,7 @@
*/
#define API_KEY "WEB_API_KEY"

/* 4. Define the user Email and password that alreadey registerd or added in your project */
/* 4. Define the user Email and password that already registerd or added in your project */
#define USER_EMAIL "USER_EMAIL"
#define USER_PASSWORD "USER_PASSWORD"

Expand Down
4 changes: 2 additions & 2 deletions examples/Authentications/Signup/Signup.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Github: https://github.com/mobizt
*
* Copyright (c) 2020 mobizt
* Copyright (c) 2021 mobizt
*
*/

Expand All @@ -30,7 +30,7 @@
/** 3. Define the API key
*
* The API key can be obtained since you created the project and set up
* the Authentication in Firebase conssole.
* the Authentication in Firebase console.
*
* You may need to enable the Identity provider at https://console.cloud.google.com/customer-identity/providers
* Select your project, click at ENABLE IDENTITY PLATFORM button.
Expand Down
2 changes: 1 addition & 1 deletion examples/AutomaticPlantWatering/AutomaticPlantWatering.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Github: https://github.com/mobizt
*
* Copyright (c) 2020 mobizt
* Copyright (c) 2021 mobizt
*
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Github: https://github.com/mobizt
*
* Copyright (c) 2020 mobizt
* Copyright (c) 2021 mobizt
*
*/

Expand Down
2 changes: 1 addition & 1 deletion examples/Backup_and_Send_Email/Backup_and_Send_Email.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Github: https://github.com/mobizt
*
* Copyright (c) 2020 mobizt
* Copyright (c) 2021 mobizt
*
*/

Expand Down
2 changes: 1 addition & 1 deletion examples/Backup_and_restore/Backup_and_restore.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Github: https://github.com/mobizt
*
* Copyright (c) 2020 mobizt
* Copyright (c) 2021 mobizt
*
*/

Expand Down
2 changes: 1 addition & 1 deletion examples/Basic/Basic.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Github: https://github.com/mobizt
*
* Copyright (c) 2020 mobizt
* Copyright (c) 2021 mobizt
*
*/

Expand Down
2 changes: 1 addition & 1 deletion examples/Basic_with_cert/Basic_with_cert.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Github: https://github.com/mobizt
*
* Copyright (c) 2020 mobizt
* Copyright (c) 2021 mobizt
*
*/

Expand Down
2 changes: 1 addition & 1 deletion examples/Beginner_start_here/Beginner_start_here.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Github: https://github.com/mobizt
*
* Copyright (c) 2020 mobizt
* Copyright (c) 2021 mobizt
*
*/

Expand Down
2 changes: 1 addition & 1 deletion examples/Blob/Blob.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Github: https://github.com/mobizt
*
* Copyright (c) 2020 mobizt
* Copyright (c) 2021 mobizt
*
*/

Expand Down
2 changes: 1 addition & 1 deletion examples/Blynk/Blynk.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Github: https://github.com/mobizt
*
* Copyright (c) 2020 mobizt
* Copyright (c) 2021 mobizt
*
*/

Expand Down
2 changes: 1 addition & 1 deletion examples/Cloud_Messaging/Cloud_Messaging.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Github: https://github.com/mobizt
*
* Copyright (c) 2020 mobizt
* Copyright (c) 2021 mobizt
*
*/

Expand Down
2 changes: 1 addition & 1 deletion examples/Data_filter/Data_filter.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Github: https://github.com/mobizt
*
* Copyright (c) 2020 mobizt
* Copyright (c) 2021 mobizt
*
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Github: https://github.com/mobizt
*
* Copyright (c) 2020 mobizt
* Copyright (c) 2021 mobizt
*
*/

Expand Down
2 changes: 1 addition & 1 deletion examples/Dynamic_FirebaseData/Dynamic_FirebasseData.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Github: https://github.com/mobizt
*
* Copyright (c) 2020 mobizt
* Copyright (c) 2021 mobizt
*
*/

Expand Down
2 changes: 1 addition & 1 deletion examples/ETag/ETag.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Github: https://github.com/mobizt
*
* Copyright (c) 2020 mobizt
* Copyright (c) 2021 mobizt
*
*/

Expand Down
2 changes: 1 addition & 1 deletion examples/File/File.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Github: https://github.com/mobizt
*
* Copyright (c) 2020 mobizt
* Copyright (c) 2021 mobizt
*
*/

Expand Down
2 changes: 1 addition & 1 deletion examples/File_flash_memory/File_flash_memory.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Github: https://github.com/mobizt
*
* Copyright (c) 2020 mobizt
* Copyright (c) 2021 mobizt
*
*/

Expand Down
2 changes: 1 addition & 1 deletion examples/FirebaseJson/examples/basic/basic.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Github: https://github.com/mobizt
*
* Copyright (c) 2020 mobizt
* Copyright (c) 2021 mobizt
*
*/

Expand Down
2 changes: 1 addition & 1 deletion examples/FirebaseJson/examples/nest/nest.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Github: https://github.com/mobizt
*
* Copyright (c) 2020 mobizt
* Copyright (c) 2021 mobizt
*
*/

Expand Down
2 changes: 1 addition & 1 deletion examples/Get_set_database_rules/Get_set_database_rules.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Github: https://github.com/mobizt
*
* Copyright (c) 2020 mobizt
* Copyright (c) 2021 mobizt
*
*/

Expand Down
Loading

0 comments on commit d7bca1e

Please sign in to comment.