• 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 Firebase Authentication

Q&A Forum › Category: ESP32 › Esp32 Firebase Authentication
0 Vote Up Vote Down
Scott Kobryn asked 8 months ago

Hi! I am working on the Firebase Web App Project. I am attempting to upload the authentication code, and I keep getting a compilation error with an extensive list of errors related to the the Firebase library. I copied the code exactly as written, only changing the necessary credentials and keys. 

8 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 8 months ago

Hi.
Tell me the version of the libraries you’re using.
Regards,
Sara

0 Vote Up Vote Down
Scott Kobryn answered 8 months ago

Firebase Arduino Client Library for ESP8266 and ESP32 by Mobitz version 4.4.14
Thanks for your help! 

0 Vote Up Vote Down
Sara Santos Staff answered 8 months ago

Are you using Arduino IDE or VS Code?
What errors exactly are you getting?
 
Regards,
Sara

0 Vote Up Vote Down
Scott Kobryn answered 8 months ago

Using Arduino IDE. Here are the errors:
In file included from c:/Users/Ryan_/Documents/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/client/SSLClient/ESP_SSLClient.h:39,
from c:\Users\Ryan_\Documents\Arduino\libraries\Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32\src/client/FB_TCP_Client.h:38,
from c:\Users\Ryan_\Documents\Arduino\libraries\Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32\src/Firebase.h:49,
from c:\Users\Ryan_\Documents\Arduino\libraries\Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32\src/Firebase_ESP_Client.h:34,
from C:\Users\Ryan_\Documents\Arduino\Firebase_Authentication_Test\Firebase_Authentication_Test.ino:11:
c:/Users/Ryan_/Documents/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/client/SSLClient/client/BSSL_TCP_Client.h:427:21: error: cannot declare field ‘BSSL_TCP_Client::_ssl_client’ to be of abstract type ‘BSSL_SSL_Client’
427 | BSSL_SSL_Client _ssl_client;
| ^~~~~~~~~~~
In file included from c:/Users/Ryan_/Documents/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/client/SSLClient/client/BSSL_TCP_Client.h:58:
c:/Users/Ryan_/Documents/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/client/SSLClient/client/BSSL_SSL_Client.h:84:7: note: because the following virtual functions are pure within ‘BSSL_SSL_Client’:
84 | class BSSL_SSL_Client : public Client
| ^~~~~~~~~~~~~~~
In file included from C:\Users\Ryan_\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.0-RC1\cores\esp32/Arduino.h:197,
from C:\Users\Ryan_\Documents\Arduino\Firebase_Authentication_Test\Firebase_Authentication_Test.ino:9:
C:\Users\Ryan_\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.0-RC1\cores\esp32/Client.h:29:15: note: ‘virtual int Client::connect(IPAddress, uint16_t, int32_t)’
29 | virtual int connect(IPAddress ip, uint16_t port, int32_t timeout) = 0;
| ^~~~~~~
C:\Users\Ryan_\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.0-RC1\cores\esp32/Client.h:31:15: note: ‘virtual int Client::connect(const char*, uint16_t, int32_t)’
31 | virtual int connect(const char *host, uint16_t port, int32_t timeout) = 0;
| ^~~~~~~
In file included from c:\Users\Ryan_\Documents\Arduino\libraries\Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32\src/Firebase.h:51:
c:\Users\Ryan_\Documents\Arduino\libraries\Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32\src/session/FB_Session.h:752:23: error: cannot declare field ‘FirebaseData::tcpClient’ to be of abstract type ‘Firebase_TCP_Client’
752 | Firebase_TCP_Client tcpClient;
| ^~~~~~~~~
c:\Users\Ryan_\Documents\Arduino\libraries\Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32\src/client/FB_TCP_Client.h:90:7: note: because the following virtual functions are pure within ‘Firebase_TCP_Client’:
90 | class Firebase_TCP_Client : public Client
| ^~~~~~~~~~~~~~~~~~~
C:\Users\Ryan_\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.0-RC1\cores\esp32/Client.h:29:15: note: ‘virtual int Client::connect(IPAddress, uint16_t, int32_t)’
29 | virtual int connect(IPAddress ip, uint16_t port, int32_t timeout) = 0;
| ^~~~~~~
C:\Users\Ryan_\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.0-RC1\cores\esp32/Client.h:31:15: note: ‘virtual int Client::connect(const char*, uint16_t, int32_t)’
31 | virtual int connect(const char *host, uint16_t port, int32_t timeout) = 0;
| ^~~~~~~
Multiple libraries were found for “SD.h”
Used: C:\Users\Ryan_\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.0-RC1\libraries\SD
Not used: C:\Users\Ryan_\AppData\Local\Arduino15\libraries\SD
exit status 1
Compilation error: exit status 1
Thanks again for your help!
 

0 Vote Up Vote Down
Sara Santos Staff answered 8 months ago

Hi.
Which version of the ESP32 core are you using?
I just tested the code with version 3.0.4 and everything is compiling and working as expected.
Regards,
Sara

0 Vote Up Vote Down
Scott Kobryn answered 8 months ago

Hi. I’m using 3.1.0. Thanks again.

0 Vote Up Vote Down
Scott Kobryn answered 8 months ago

I tried it with version 3.0.4, and it worked. Thanks!

0 Vote Up Vote Down
Sara Santos Staff answered 8 months ago

I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
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.