Closed lougira closed 7 months ago
For RTDB, you have to follow this example. https://github.com/mobizt/Firebase-ESP-Client/blob/main/examples/RTDB/Timestamp/Timestamp.ino
Firestore and Realtime database are totally different, and nothing is compatible.
So it means that with this library, we can't use serverTimestamp with Firestore? Can you confirm this?
You should consult the Firestore documentation.
Hello,
I try to add a timestamp field in Firestore. I would like to get the server timestamp. I notice in the repo main page the following :
I wrote the following code:
When I build this code, the error is :
I can't figure out where is the problem and I don't understand why the
setTimestamp()
method is not a member function of the classFirebase
. By the way, can thesetTimestamp()
be used for Firestore?