How to send a timestamp of the current time from ESP32 to Cloud Firestore Database? #425
-
I have been able to commit String data into an array from the ESP32 to my Cloud Firestore Database. But, I would like to also commit a timestamp to an array of timestamps from the ESP32. Is that possible with this Github library? I get this error message when trying to commit a time stamp: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The Firestore REST API does not support this. The timestamp set to the field is the request timestamp's server value which only available for one transformation type called You need to manually append string of your defined timestamp to the field you want to append. Please note that, the library is the REST API client which you need to read the Google documentation for the feature and application of API. The library functions descriptions are available in README.md in src folder. |
Beta Was this translation helpful? Give feedback.
The Firestore REST API does not support this.
The timestamp set to the field is the request timestamp's server value which only available for one transformation type called
setToServerValue
while append something is theappendMissingElements
transformation type which cannot be mixed.You need to manually append string of your defined timestamp to the field you want to append.
Please note that, the library is the REST API client which you need to read the Google documentation for the feature and application of API.
The library functions descriptions are available in README.md in src folder.