-
Hi! I'm new to working on Arduino and I've been having countless issues with the old firebase-arduino library which stopped writing data completely to firebase, and found out about this new library here. Our project submission (its meant to calculate water level using ultrasonic sensor and ESP8266) is in a few days and I'd truly appreciate help on how I should convert my project from the old library to this new one. I've tried reading the examples and I'm confused on what changes should be made since they seem to be using a different way of authentication than database secret keys?
Edit: Apologies about posting this to the wrong place earlier. Thanks to whoever moved this to its correct place. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
You should read the main page (read me doc) for how to prepare to work with the library. The database secret is outdated and will not work in the future. You should consider to work with the Firebase in the secure way which there are many docs from Google available which will give you the details about authentication and security rules. If you still want to use the database secret, you can use the same method as in that library i.e. Firebase.begin("url","secret"); Or use the standard config and auth objects as in this example. You should spend the time to play with examples and read the document. The examples are ready to test and the comment in the examples show how to. Firebase-ESP8266/examples/Basic/Basic.ino Lines 27 to 41 in dedb7e9 The importance is you need to read the main page (read me). All examples use the sign in method with Email and Password, but you can use Firebase.begin("url","secret"); as usual. |
Beta Was this translation helpful? Give feedback.
-
You're right I didn't read properly. Apologies for this useless discussion post. Ended up finding and reading an example for the legacy authentication method. Thanks! |
Beta Was this translation helpful? Give feedback.
-
I've come across a new issue where it keeps giving me
for the Full code:
Any ideas on why isn't Firebase.setInt working? Edit: Ended up defining and now I'm getting these sketch upload errors...
|
Beta Was this translation helpful? Give feedback.
You should read the main page (read me doc) for how to prepare to work with the library.
The database secret is outdated and will not work in the future. You should consider to work with the Firebase in the secure way which there are many docs from Google available which will give you the details about authentication and security rules.
If you still want to use the database secret, you can use the same method as in that library i.e. Firebase.begin("url","secret");
Or use the standard config and auth objects as in this example.
You should spend the time to play with examples and read the document.
The examples are ready to test and the comment in the examples show how to.
Firebase-ESP82…