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.
Firebase Arduino Client Library for ESP8266 and ESP32 by Mobitz version 4.4.14
Thanks for your help!
Are you using Arduino IDE or VS Code?
What errors exactly are you getting?
Regards,
Sara
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!
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