Skip to content

How to send a timestamp of the current time from ESP32 to Cloud Firestore Database? #425

Answered by mobizt
CalColistra asked this question in Q&A
Discussion options

You must be logged in to vote

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 the appendMissingElements 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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mobizt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants