mobizt / Firebase-ESP-Client

[DEPRECATED]🔥Firebase Arduino Client Library for ESP8266, ESP32 and RP2040 Pico. The complete, fast, secured and reliable Firebase Arduino client library that supports RTDB, Cloud Firestore, Firebase and Google Cloud Storage, Cloud Messaging and Cloud Functions for Firebase.
MIT License
471 stars 100 forks source link

firebase esp32 client library clashes with esp mail client library #674

Closed alabadan01 closed 1 month ago

alabadan01 commented 1 month ago

i am doing a fingerprint attendance system using real-time firebase as the databse and also sending the attendance sheet after every lecture to an email acccount for later purposes and reasons. However, there is a compilation issue at the end of the journey. further investigations shows that there is a conflict between the both libraries being used. something indicating that Screenshot_2024-08-10_00-06-23 Both libraries are defining the same BSSL_TCP_Client class and its methods, causing multiple definition errors. The error messages indicate that functions from BSSL_TCP_Client are defined in both libraries, leading to conflicts during linking.

IDE and its version:

mobizt commented 1 month ago

This library is end of life.

mobizt commented 1 month ago

https://github.com/mobizt/Firebase-ESP-Client?tab=readme-ov-file#we-have-moved-to-the-new-library

mobizt commented 1 month ago

Both libraries have the folder src/client/SSLClient, which you have to remove one which depending on which library was already included it.

if ESP_Mail_Client.h was included after FirebaseXXXXX.h, the folder src/client/SSLClient in the ESP-Mail-Client library installation folder should be removed.

alabadan01 commented 1 month ago

using the new library and its the same. the evidence of this installation is in the screenshot showing its been installed ![Uploading Screenshot_2024-08-02_09-42-42.png…]() ![Uploading Screenshot_2024-08-02_09-42-42.png…]()

![Uploading Screenshot_2024-08-10_00-06-23.png…]()

mobizt commented 1 month ago

Read my post above again.

mobizt commented 1 month ago

You have to uninstall all Firebase libraries and install only one and follow my comment above for redundant folders deletion.

alabadan01 commented 1 month ago

ive got new errors

mobizt commented 1 month ago

Nothing is error if you follow my comment correctly.

alabadan01 commented 1 month ago

do i use the firebase client library now?

alabadan01 commented 1 month ago

the conflict is now with the firebse json library and the firebase esp32 library

mobizt commented 1 month ago

https://github.com/mobizt/Firebase-ESP32?tab=readme-ov-file#we-have-moved-to-the-new-library

mobizt commented 1 month ago

If you want to use new library, you have to read the documentation thoroughly and follow the library examples.