• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP32: Getting Started with Firebase (Realtime Database) – Errors

Q&A Forum › Category: ESP32 › ESP32: Getting Started with Firebase (Realtime Database) – Errors
0 Vote Up Vote Down
Robert Fisher asked 2 days ago

This example uses the newer library FirebaseClient so I thought I would try it but I get these errors. I have updated FirebaseClient to ver 2.1.0 and rebooted IDE.
 
C:\Firebase\Arduino Sketches\NewFirebaseLibrary\NewFirebaseLibrary.ino:22:1: error: ‘UserAuth’ does not name a type
22 | UserAuth user_auth(Web_API_KEY, USER_EMAIL, USER_PASS);
| ^~~~~~~~
C:\Firebase\Arduino Sketches\NewFirebaseLibrary\NewFirebaseLibrary.ino:29:1: error: ‘RealtimeDatabase’ does not name a type
29 | RealtimeDatabase Database;
| ^~~~~~~~~~~~~~~~
C:\Firebase\Arduino Sketches\NewFirebaseLibrary\NewFirebaseLibrary.ino: In function ‘void setup()’:
C:\Firebase\Arduino Sketches\NewFirebaseLibrary\NewFirebaseLibrary.ino:58:39: error: ‘user_auth’ was not declared in this scope
58 | initializeApp(aClient, app, getAuth(user_auth), processData, “🔐 authTask”);
| ^~~~~~~~~
C:\Firebase\Arduino Sketches\NewFirebaseLibrary\NewFirebaseLibrary.ino:59:14: error: ‘RealtimeDatabase’ was not declared in this scope
59 | app.getApp<RealtimeDatabase>(Database);
| ^~~~~~~~~~~~~~~~
C:\Firebase\Arduino Sketches\NewFirebaseLibrary\NewFirebaseLibrary.ino:59:32: error: ‘Database’ was not declared in this scope
59 | app.getApp<RealtimeDatabase>(Database);
| ^~~~~~~~
C:\Firebase\Arduino Sketches\NewFirebaseLibrary\NewFirebaseLibrary.ino: In function ‘void loop()’:
C:\Firebase\Arduino Sketches\NewFirebaseLibrary\NewFirebaseLibrary.ino:76:7: error: ‘Database’ was not declared in this scope
76 | Database.set<String>(aClient, “/test/string”, stringValue, processData, “RTDB_Send_String”);
| ^~~~~~~~
C:\Firebase\Arduino Sketches\NewFirebaseLibrary\NewFirebaseLibrary.ino:76:26: error: expected primary-expression before ‘>’ token
76 | Database.set<String>(aClient, “/test/string”, stringValue, processData, “RTDB_Send_String”);
| ^
C:\Firebase\Arduino Sketches\NewFirebaseLibrary\NewFirebaseLibrary.ino:78:20: error: expected primary-expression before ‘int’
78 | Database.set<int>(aClient, “/test/int”, intValue, processData, “RTDB_Send_Int”);
| ^~~
C:\Firebase\Arduino Sketches\NewFirebaseLibrary\NewFirebaseLibrary.ino:83:20: error: expected primary-expression before ‘float’
83 | Database.set<float>(aClient, “/test/float”, floatValue, processData, “RTDB_Send_Float”);
| ^~~~~
exit status 1
 

Question Tags: Firebase
3 Answers
0 Vote Up Vote Down
Robert Fisher answered 2 days ago

Hi, I rolled back FirebaseClient to 2.0.5 and the errors went away. Rob

0 Vote Up Vote Down
Sara Santos Staff answered 1 day ago

Hi.
What example exactly are you following?
Regards,
Sara

0 Vote Up Vote Down
Sara Santos Staff answered 1 day ago

Hi.
What example exactly are you following?
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.